• 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 Mysteries: Proxy Sorting in Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController Mysteries: Proxy Sorting in Tiger


  • Subject: Re: NSArrayController Mysteries: Proxy Sorting in Tiger
  • From: BlueHorseshoe <email@hidden>
  • Date: Sat, 28 May 2005 23:28:02 -0400

I think I have figured out what is going here:

"Or does this "proxy" sorting phenomenon only occur when binding a KVC-proxy NSMutableArray to the NSArrayController? I mean that, if one binds directly to the actual "model" NSMutableArray itself, instead of a proxy created via KVC-compliant accessor methods, does the "model" itself get sorted?"

The answer to this, at least in Tiger, appears to be yes.

Sorting behavior, that is whether or not the underlying array is actually sorted or not, depends on whether you have bound the NSArrayController to a KVC-proxy array or not. If you have bound to a KVC-proxy, instead of a actual NSMutableArray instance, the underling array is not sort while the proxy is. Otherwise, the underlying array is sorted, as one would normally expect.


_______________________________________________ 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
  • Prev by Date: Re: NSArrayController indices and Drag & Drop
  • Next by Date: Wake from Sleep
  • Previous by thread: NSArrayController Mysteries: Proxy Sorting in Tiger
  • Next by thread: simple sprite engine (beta)
  • Index(es):
    • Date
    • Thread