• 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: NSMutableArrayForKeyPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArrayForKeyPath


  • Subject: Re: NSMutableArrayForKeyPath
  • From: Allan Odgaard <email@hidden>
  • Date: Fri, 19 Mar 2004 06:41:32 +0100

On 19. Mar 2004, at 6:24, Alan Donsky wrote:

calling super binds the view to the controller so that changes in the model are reflected with changes in the view.

I am a little confused. You mention that the problem is that the *model* gets the entire array, but so far you have only told about bindings between the controller and view (not the model).

Also, you bind to arrangedObjects.name -- this *is* an array. So if the binding to the model is for the same key path, that would explain why you get an array.

But what is it you want? If you are after the name of the *selected* item, you should use selection.name between model and controller (but still arrangedObjects.name between controller and table column (which I assume is the superclass?!?).

I am using (void)textDidChange: so that i can change the model when the user changes the view.

Are you not able to get that behavior without resorting to subclassing?
_______________________________________________
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: 
 >NSMutableArrayForKeyPath (From: Alan Donsky <email@hidden>)
 >Re: NSMutableArrayForKeyPath (From: Alan Donsky <email@hidden>)

  • Prev by Date: key combinations while the screen is captured
  • Next by Date: Re: Autorelease pools?
  • Previous by thread: Re: NSMutableArrayForKeyPath
  • Next by thread: Re: NSMutableArrayForKeyPath
  • Index(es):
    • Date
    • Thread