• 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
NSViewController -identifier unrecognized selecto problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSViewController -identifier unrecognized selecto problem
      • From: Kyle Sluder <email@hidden>
    • Re: NSViewController -identifier unrecognized selecto problem
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Custom UIView delegate - .ValueChanged?
  • Next by Date: Re: NSViewController -identifier unrecognized selecto problem
  • Previous by thread: Custom UIView delegate - .ValueChanged?
  • Next by thread: Re: NSViewController -identifier unrecognized selecto problem
  • Index(es):
    • Date
    • Thread