NSArrayController predicate filtering weirdness
NSArrayController predicate filtering weirdness
- Subject: NSArrayController predicate filtering weirdness
- From: Markus Spoettl <email@hidden>
- Date: Tue, 2 Feb 2010 15:16:04 +0100
Hello,
I have a problem with filtering an NSArrayController that I can't understand. Under some (unknown) circumstances, my array controller produces different filtered results, seemingly depending on which filter predicate was selected previously.
It goes something like this:
Filter using predicate A => arrangedObjects contains 4 objects (correct)
Filter using predicate F => arrangedObjects contains 0 objects (incorrect)
Filter using predicate B => arrangedObjects contains 2 objects (correct)
Filter using predicate F => arrangedObjects contains 1 object (correct)
Predicate F is identical in both cases (meaning it's the exact same object) also the content (unfiltered) of the array controller doesn't change between filter assignments.
I have found that setting the controller's filter predicate to nil before applying the filter predicate I want fixes the issue. However, I have a strong suspicion that this just covers up a problem somewhere else.
What could be the cause of behavior like this? Any hints greatly appreciated!
Regards
Markus
--
__________________________________________
Markus Spoettl
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden