Re: Question about NSArrayController
Re: Question about NSArrayController
- Subject: Re: Question about NSArrayController
- From: Matthew Delves <email@hidden>
- Date: Tue, 5 Jun 2007 06:24:25 +1000
On 04/06/2007, at 5:59 PM, Chris Hanson wrote:
Instead, implement the model-level object that has the collection
of data you're presenting to be compliant with the needs of Key-
Value Coding and Key-Value Observing, you can just bind your
NSArrayController to it. Then just use the appropriate accessor
methods to make modifications to it those model-level objects, and
the changes will be reflected appropriately in your views.
I have the NSArrayController using bindings to classes and its
maintaining the array of those objects. Is this the correct way to
handle things?
The reason that I wanted to get the Array from the controller (and
since figured out how) is that when the user clicks something along
the lines of an 'export to text file' button that it would do so for
all of the objects not just those selected. Is this something that
should be permitted?
Thanks for your in depth and persuasive outline of how to approach
programming for OS X.
Thanks,
Matthew Delves
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden