• 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: NSTreeController, Core Data and root objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeController, Core Data and root objects


  • Subject: Re: NSTreeController, Core Data and root objects
  • From: Rob Keniger <email@hidden>
  • Date: Fri, 6 Nov 2009 17:23:47 +1000

On 06/11/2009, at 4:15 PM, Steve Steinitz wrote:

> I don't see anything wrong.  In fact, it looks great.  Does insertObjects:: call insertObject:: so that one day, if you implement drag and drop for multiple items it will all work?

Good question, I haven't tested that but I will do so.

> One possible tweak: since you've already subclassed NSTreeController would be worth overriding its awakeFromNib to cache the root object?  Is the root object unchanging?  Then insertObject:: would be short and sweet.


The root object is indeed unchanging. You're right, caching the object would be an improvement on the fetch.

I'll proceed with this and see if I have any problems.

Many thanks,

--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >Re: NSTreeController, Core Data and root objects (From: Steve Steinitz <email@hidden>)

  • Prev by Date: Re: NSOperationQueue for NSXMLParser object
  • Next by Date: Re: Bulletproof way to create a new CGBitmapContext from an existing image?
  • Previous by thread: Re: NSTreeController, Core Data and root objects
  • Next by thread: Status Bar App menu won't work in 10.6, will in 10.5
  • Index(es):
    • Date
    • Thread