Re: NSViewController -identifier unrecognized selecto problem
Re: NSViewController -identifier unrecognized selecto problem
- Subject: Re: NSViewController -identifier unrecognized selecto problem
- From: Kyle Sluder <email@hidden>
- Date: Wed, 09 Dec 2015 15:19:05 -0600
On Wed, Dec 9, 2015, at 11:20 AM, Jonathan Mitchell wrote:
> 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
As per the AppKit release notes, NSViewController only started
conforming to NSUserInterfaceItemIdentification in 10.10. Sadly, the are
no availability macros for conformances.
You might consider filing a bug report about this, but in the meantime
you'll need to stop sending -identifier to your view controllers when
running on 10.9.
--Kyle Sluder
_______________________________________________
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