Re: [Moderator] Re: "Select All" first in table view
Re: [Moderator] Re: "Select All" first in table view
- Subject: Re: [Moderator] Re: "Select All" first in table view
- From: "I. Savant" <email@hidden>
- Date: Thu, 10 May 2007 11:43:32 -0400
On 5/10/07, cocoa-dev-admins <email@hidden> wrote:
Please keep this specific to Cocoa.
Yes, the UI design approach part is best for that yahoo list mmalc
keeps referencing (though its name slips my mind), but, specifically
to Cocoa - :-) - the take-home messages is this:
If you want to still use Core Data / Bindings, you can still use the
array controller for the model data source (since it does a lot of the
heavy lifting for you), but use the table data source methods to
populate the table. Bindings and table data sources can be (and often
are, in more complicated apps) mixed. With some things (like this
one), it's necessary.
Specifically, I'd just create a subclass of NSArrayController that
serves as both array controller and datasource, so it's trivial to
call -reloadData on the table in response to content changes and
sorting.
--
I.S.
_______________________________________________
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