Re: NSPopupButton with NSArrayController
Re: NSPopupButton with NSArrayController
- Subject: Re: NSPopupButton with NSArrayController
- From: Ferhat Ayaz <email@hidden>
- Date: Sat, 6 Jan 2007 23:12:21 +0100
thanks,
I read the documentations. What I don't have understand is, if you
have an array with 2000 objects, for each ArrayController must be
allocated at least the pointers to the "contentobjects". 2000
additional pointers, am i right? I meant this allocation.
ferhat
On Jan 6, 2007, at 8:59 PM, I. Savant wrote:
On Jan 6, 2007, at 2:33 PM, Ferhat Ayaz wrote:
Aren't they allocated separatly?
??
If you mean the array controllers, yes, since they're separate
instances of a class, they're allocated separately ... but that has
nothing to do with anything.
Their content object is the same. It's just their filter
predicates that are different, so from the same content you have
two different controllers displaying two different subsets of the
same content. This is the best approach to your situation.
You may want to go back to the Cocoa Bindings documentation to
get a better handle on things on order to effectively leverage this
technology with Core Data. As the two are not the same thing (but
merely can - and often are - used together), you need to read the
documentation on both Core Data *and* Cocoa Bindings.
--
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