NSViewController -identifier unrecognized selecto problem
NSViewController -identifier unrecognized selecto problem
- Subject: NSViewController -identifier unrecognized selecto problem
- From: Jonathan Mitchell <email@hidden>
- Date: Wed, 09 Dec 2015 17:20:26 +0000
NSViewController conforms to NSUserInterfaceItemIdentification so should implement
@property (nullable, copy) NSString *identifier;
I build my app on 10.11 with a deployment target of 10.9
Om 10.10 and 10.11 no issues.
On 10.9 I get
'NSInvalidArgumentException', reason: '-[TSToolbarGroup identifier]: unrecognized selector sent to instance 0x60000018ee10’
TSToolbarGroup is an NSViewController subclass of mine
How can this be?
I didn’t have this issue when I built against 10.9 rather than 10.11.
Curiously the header for NSViewController on 10.11 doesn’t define any identifier accessors.
When building solely for 10.9 I used to declare an identifier property on my view controller subclasses (obviously with good reason, though why I thought this was necessary I don’t know now)
@property (strong) NSString *identifier;
But Xcode 7 moans about property synthesis when this is present.
J
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden