Customizing an iOS app in objective-c. Not super familiar with the language, and this simple task of setting up a boolean property has taken me too long.
Can anybody offer some advice here?
Video.h
@property (nonatomic, retain) NSNumber * hasCustomThumbnail;
Video.m
@implementation Video
@dynamic hasCustomThumbnail;
@end
OtherFile referencing the video
// have tried these two an many other things...
video.hasCustomThumbnail = [NSNumber numberWithBool:NO];
video.hasCustomThumbnail = @NO;
The error I get no matter how many dozens of ways I've tried this is:
'NSInvalidArgumentException', reason: '-[Video setHasCustomThumbnail:]: unrecognized selector sent to instance 0x60c0004925c0'
Have tried many suggestions including this: Using a BOOL property
I also know the video is referenced correctly because autocomplete suggests "hasCustomThumbnail" as I start typing.
I simply cannot believe how hard OBJ-c is making this :-)
Any suggestions?