• 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
NSTreeController filter contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTreeController filter contents


  • Subject: NSTreeController filter contents
  • From: "Michael Hanna" <email@hidden>
  • Date: Mon, 23 Jun 2008 17:10:39 -0700

How do I filter-out the contents of an NSTreeController? I saw an
example with NSArrayController by overriding the [NSArrayController
-arrangeObjects] method, but NSTreeController doesn't have this
method.

So if a non-leaf or leaf node has a certain attributes set, like
-isEnabled, I'd like to simply not have the NSTreeController display
the node(and it's children).

I want to avoid putting view information in my model, so that is why I
need to use a filter. 10.4 or higher is my requirement.

best regards,
Michael
_______________________________________________

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: NSTreeController filter contents
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Creating Installer Package from Cocoa
  • Next by Date: CoteData pagination
  • Previous by thread: Re: Creating Installer Package from Cocoa
  • Next by thread: Re: NSTreeController filter contents
  • Index(es):
    • Date
    • Thread