• 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: Custom NSArrayController that manages its own array?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Custom NSArrayController that manages its own array?
      • From: Keary Suska <email@hidden>
References: 
 >Custom NSArrayController that manages its own array? (From: Jens Alfke <email@hidden>)
 >Re: Custom NSArrayController that manages its own array? (From: Keary Suska <email@hidden>)

  • Prev by Date: Source list groups hidden by default
  • Next by Date: Re: Getting weekday name from weekday number?
  • Previous by thread: Re: Custom NSArrayController that manages its own array?
  • Next by thread: Re: Custom NSArrayController that manages its own array?
  • Index(es):
    • Date
    • Thread