Re: NSController, KVC & AppleScript not co-operating
Re: NSController, KVC & AppleScript not co-operating
- Subject: Re: NSController, KVC & AppleScript not co-operating
- From: Scott Anguish <email@hidden>
- Date: Sun, 7 Mar 2004 02:59:44 -0500
On Mar 7, 2004, at 1:05 AM, Dustin Voss wrote:
So you aren't using an intermediate controller? In that case, if you
have an object, Bob, with an isFishing method, you should bind the
checkbox to the object Bob and the model key path of "fishing", not
"bob.isFishing".
you need to use a controller. Otherwise things don't work correctly
for some fields (textfields, textviews, etc)
always, always, always use a controller.
The model key path starts within the bound object, it should not
include the bound object itself. And KVC takes care of the "is"
automatically.
I think it depends on the model
if the variable/method is actually named
isFishing
setIsFishing:
it should be OK
then
isIsFishing will return true if isFishing is true...
if however it's just fishing, then isFishing will return a value, but
attempting to set it should fail
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.