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

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


  • Follow-Ups:
    • Re: NSPopupButton with NSArrayController
      • From: "I. Savant" <email@hidden>
    • Re: NSPopupButton with NSArrayController
      • From: "I. Savant" <email@hidden>
References: 
 >NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: NSCell with various fonts
  • Next by Date: Re: previousResponder?
  • Previous by thread: Re: NSPopupButton with NSArrayController
  • Next by thread: Re: NSPopupButton with NSArrayController
  • Index(es):
    • Date
    • Thread