I am trying to modify the NSUserNotifictation to pass custom variables:
@interface MyUserNotification: NSUserNotification
@property (nonatomic) int theid;
@property (nonatomic) NSString* url;
@end
@implementation MyUserNotification
@end
Then when initiating in my AppDelegate
object:
MyUserNotification *notification = [[MyUserNotification alloc] init];
notification.theid = theid;
setting theid
throws the error:
-[_NSConcreteUserNotification setTheid:]: unrecognized selector sent to instance 0x100204840
Why is NSConcreteUserNotification
object getting involved?