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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to