Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kludges when binding to 'value' of Menu Items



On Oct 21, 2007, at 1:01 AM, Jerry Krinock wrote:

Sorry, I.S.  I didn't mean to be rude or dismissive.

  No problem.

-[NSNull identifier]: selector not recognized

For the record, I believe that this error is a clue that one of the components of a long.key.path in a binding is not KVC.

I'm not entirely sure I'm right, but I'm going to say "not necessarily".


I did isolate it to a particular component but after trying for some time was unable to fix it. So I decided it would be easier to simply not use bindings this time.

There are *many* cases where this ... well ... is the case. :-) It's not perfect and it's not a catch-all, but Bindings is incredibly flexible. In this case my nit was that the window controller / document path absolutely works for me, but I wasn't sure whether your own situation was really so special that it wouldn't. Of course it's entirely possible (and somewhat probable) that it was ...

I use bindings for all simple cases, some more difficult cases, and pretty much no complex cases. Not gospel, but just my own experience.

--
I.S.




_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Kludges when binding to 'value' of Menu Items (From: Jerry Krinock <email@hidden>)
 >Re: Kludges when binding to 'value' of Menu Items (From: "I. Savant" <email@hidden>)
 >Re: Kludges when binding to 'value' of Menu Items (From: Jerry Krinock <email@hidden>)
 >Re: Kludges when binding to 'value' of Menu Items (From: "I. Savant" <email@hidden>)
 >Re: Kludges when binding to 'value' of Menu Items (From: Jerry Krinock <email@hidden>)
 >Re: Kludges when binding to 'value' of Menu Items (From: "I. Savant" <email@hidden>)
 >Re: Kludges when binding to 'value' of Menu Items (From: Jerry Krinock <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.