• 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 / CoreData quesiton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeController / CoreData quesiton


  • Subject: Re: NSTreeController / CoreData quesiton
  • From: Scott Stevenson <email@hidden>
  • Date: Tue, 24 May 2005 14:47:08 -0700


On May 24, 2005, at 2:38 PM, Scott Stevenson wrote:

*Subclass NSManagedObject for Category and use a recursive method for getting all the items.

I think this is probably your best bet.

(responding to myself)

Another options is to create a "topLevelCategory" attribute and override the set mutators for Category, so that every time an item is added, you can do something like:

[item setValue: [self valueForKey:@"topLevelCategory"] forKey: @"topLevelCategory"]];

Then you can add a fetched property to Category for all items that match "topLevelCategory == %@", self.


- Scott

--
http://treehouseideas.com/
http://theocacao.com/ [blog]


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSTreeController / CoreData quesiton (From: Justin Fagnani <email@hidden>)
 >Re: NSTreeController / CoreData quesiton (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: [OT] BANG
  • Next by Date: Re: AppleScript: Returning object references in Cocoa
  • Previous by thread: Re: NSTreeController / CoreData quesiton
  • Next by thread: [OT] BANG
  • Index(es):
    • Date
    • Thread