Thank you Ken and Keary. That nailed it - and I'm now a very happy chap. Thanks for this.
On 9 Nov 2013, at 16:59, Keary Suska <cocoa-...@esoteritech.com> wrote: > On Nov 9, 2013, at 9:33 AM, Pax wrote: > >> My application has three buttons, each with the same Sent Action. In fact, >> all of the buttons are identical, except for their name, icon and identifier >> (the identifiers are 0, 1 and 2). >> >> The Sent Action points to a spot of code which will select a tab view: >> >> -(IBAction)selectView:(id)sender >> { >> [_preferenceViews selectTabViewItemAtIndex:[[sender identifier]intValue]]; >> } >> >> It's not very complicated, and it works as it should on Mac OS X 10.7 and >> newer. On Mac OS X 10.6, however, selectView doesn't get called and I get >> the following error in the console: >> >> [NSButton identifier]: unrecognized selector sent to instance 0x100198450 >> >> I'm not ready to abandon Snow Leopard yet. Has anyone seen this before and, >> if so, what is the solution? I've hooked everything up using IB, just in >> case that offers a clue. > > This is not a bug. -identifier was a new addition in 10.7. Use -tag instead, > which works across the board, and is more appropriate for your use, IMHO. > > HTH, > > Keary Suska > Esoteritech, Inc. > "Demystifying technology for your home or business" > _______________________________________________ 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