Re: NSArrayController - limiting number of values
Re: NSArrayController - limiting number of values
- Subject: Re: NSArrayController - limiting number of values
- From: Benjámin Salánki <email@hidden>
- Date: Sun, 9 Apr 2006 09:50:29 +0200
Ah, thanks for the update, I already implemented the
NSValueTransformer solution, and for the time being it seems to be
efficient enough for my purposes, but I will take a look at the
NSArrayController subclassing as well.
Ben
On Apr 9, 2006, at 9:34 AM, Scott Anguish wrote:
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