Re: Custom NSArrayController that manages its own array?
Re: Custom NSArrayController that manages its own array?
- Subject: Re: Custom NSArrayController that manages its own array?
- From: Jens Alfke <email@hidden>
- Date: Tue, 18 Oct 2011 16:16:09 -0700
On Oct 18, 2011, at 11:59 AM, Keary Suska wrote:
> In your subclass you could use the machinery afforded by automaticallyPreparesContent, or simply set the content on awakeFromNib or whenever it is needed.
Hm. So in other words I would implement the KVC methods in the subclass (-countOfEntries, etc.), then implement
- (void)prepareContent {
self.content = [self valueForKey: @“entries”];
}
to get the fake NSMutableArray and set it as the controller’s content. I guess that would work.
—Jens_______________________________________________
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