• 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: NSArrayController - limiting number of values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController - limiting number of values


  • Subject: Re: NSArrayController - limiting number of values
  • From: Scott Anguish <email@hidden>
  • Date: Sun, 9 Apr 2006 03:34:21 -0400

mmalc and I had a short exchange on this off-line.

it might be more efficient to consider either subclassing NSArrayController and modifying arrangedObjects to return the subset (mmalc's suggestion)

or

add a new set of indexed accessors to your model that return a maximum value for the countOf<Foo> (sigh, can't remember the exact selector, check the doc) of the maximum number of items you want.


On Apr 8, 2006, at 6:46 PM, Benjámin Salánki wrote:

Thanks! I'll read myself into the NSValueTransformers then.

Ben

On Apr 9, 2006, at 12:29 AM, Scott Anguish wrote:

in a word "NSValueTransformer".

have a value transformer that takes the array, and only returns the first x objects.

On Apr 8, 2006, at 4:41 PM, Benjámin Salánki wrote:

Hi there,

I have a problem here and I am not sure I can handle it easily.

I have to array controllers, one's content set is bound to the selection of the other. this is all working fine, i have it all set up to show the bound data in a table view, which is fine too.

now what i need to accomplish is to have a third array controller that is bound to the selection of the first one as well, but only displays the first 15 entries of the given selection. so say the selection in arraycontroller 1 has 35 entries, i only want this new arraycontroller3 to handle the first 15 elements, while i want arraycontroller2 to handle all 35. is this possible? how should i try to do it?



_______________________________________________ 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
  • Follow-Ups:
    • Re: NSArrayController - limiting number of values
      • From: Benjámin Salánki <email@hidden>
References: 
 >NSArrayController - limiting number of values (From: Benjámin Salánki <email@hidden>)
 >Re: NSArrayController - limiting number of values (From: Scott Anguish <email@hidden>)
 >Re: NSArrayController - limiting number of values (From: Benjámin Salánki <email@hidden>)

  • Prev by Date: Strange Editing behaviour in NSBrowserCell
  • Next by Date: Re: NSArrayController - limiting number of values
  • Previous by thread: Re: NSArrayController - limiting number of values
  • Next by thread: Re: NSArrayController - limiting number of values
  • Index(es):
    • Date
    • Thread