• 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: Wain <email@hidden>
  • Date: Sat, 8 Apr 2006 22:11:29 +0100

Hi,

Anything is possible, you can even use bindings if you want but (I think) you will need to set it up in code.
Never tried doing this before so if anyone else knows how to do it in IB I'd be interested.


Observe the first array controller, when the selection changes create a new array holding your limited number of items, posting KVO notifications for your changes.
Your third array controller then observes your limited selection array.


Wain

On 8 Apr 2006, at 21:41, 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?

any thoughts are appreciated.

Ben
_______________________________________________
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: 
 >NSArrayController - limiting number of values (From: Benjámin Salánki <email@hidden>)

  • Prev by Date: Re: validateDrop in NSTableView never called
  • Next by Date: Re: Looking For Outline View Examples Š
  • Previous by thread: NSArrayController - limiting number of values
  • Next by thread: Re: NSArrayController - limiting number of values
  • Index(es):
    • Date
    • Thread