• 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: NSController, KVC & AppleScript not co-operating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >NSController, KVC & AppleScript not co-operating (From: Nicholas Shanks <email@hidden>)
 >Re: NSController, KVC & AppleScript not co-operating (From: Dustin Voss <email@hidden>)

  • Prev by Date: Re: -retain and -release Questions
  • Next by Date: Comparing two NSMenus
  • Previous by thread: Re: NSController, KVC & AppleScript not co-operating
  • Next by thread: Re: NSController, KVC & AppleScript not co-operating
  • Index(es):
    • Date
    • Thread