• 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: Filtering the Contents of an Array Controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering the Contents of an Array Controller


  • Subject: Re: Filtering the Contents of an Array Controller
  • From: August Trometer <email@hidden>
  • Date: Mon, 11 Apr 2005 14:13:14 -0500

OK, so the filtering should be done in arrangeObjects, not in arrangedObjects, and that makes so much more sense.

And what's worse, I've been to mmalc's site dozens and dozens of times and I forgot about that one.

Thanks!

August



On Apr 11, 2005, at 1:44 PM, Kevin Callahan wrote:


On Apr 11, 2005, at 11:37 AM, August Trometer wrote:


I've got a subclass NSArrayController whose contents are displayed in a table via bindings. There are several types of objects in this list differentiated by various criteria. I'd like to let my users filter that list and show only the type (or types) that they want.

My first attempt was to use my subclass and overwrite arrangedObjects: and filter there. However, because the list of objects is rather long, this resulted in poor redraw performance and jerkiness during scrolling.

For various reasons (mostly performance and stability), I'd like to keep all the objects in the array and simply filter them. Is there a way to do this that I'm missing?


Have you looked at mmalc's page?

<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>

Filtering Controller

Shows custom array controller that interacts with a search field (NSSearchField) to filter the displayed content of a table view.

-Kevin




Thanks!

August



_______________________________________________
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




_______________________________________________ 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: 
 >Filtering the Contents of an Array Controller (From: August Trometer <email@hidden>)
 >Re: Filtering the Contents of an Array Controller (From: Kevin Callahan <email@hidden>)

  • Prev by Date: Re: NSBezierPath geometry question...
  • Next by Date: Re: NSBezierPath geometry question...
  • Previous by thread: Re: Filtering the Contents of an Array Controller
  • Next by thread: Re: Filtering the Contents of an Array Controller
  • Index(es):
    • Date
    • Thread