Re: NSArrayController Mysteries: Proxy Sorting in Tiger
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