• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSViewController -identifier unrecognized selecto problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSViewController -identifier unrecognized selecto problem


  • Subject: Re: NSViewController -identifier unrecognized selecto problem
  • From: Jonathan Mitchell <email@hidden>
  • Date: Wed, 09 Dec 2015 23:05:04 +0000

HI Kyle.
Thanks for that.
I totally missed the fact that NSUserInterfaceItemIdentification is a recent addition.
Looks like I will just have to refactor.

J
> On 9 Dec 2015, at 21:19, Kyle Sluder <email@hidden> wrote:
>
> 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















_______________________________________________

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


References: 
 >NSViewController -identifier unrecognized selecto problem (From: Jonathan Mitchell <email@hidden>)
 >Re: NSViewController -identifier unrecognized selecto problem (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Determining underlying type of array in swift?
  • Next by Date: Re: Determining underlying type of array in swift?
  • Previous by thread: Re: NSViewController -identifier unrecognized selecto problem
  • Next by thread: Scroll-vs-zoom for scroll balls
  • Index(es):
    • Date
    • Thread