Re: NSTreeController / CoreData quesiton
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