• 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: 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


  • Follow-Ups:
    • Re: NSViewController -identifier unrecognized selecto problem
      • From: Jonathan Mitchell <email@hidden>
References: 
 >NSViewController -identifier unrecognized selecto problem (From: Jonathan Mitchell <email@hidden>)

  • Prev by Date: Re: LSSharedFIleList API deprecated
  • Next by Date: Scroll-vs-zoom for scroll balls
  • Previous by thread: Re: NSViewController -identifier unrecognized selecto problem
  • Next by thread: Re: NSViewController -identifier unrecognized selecto problem
  • Index(es):
    • Date
    • Thread