Re: Remove/Disable NSPredicate from NSMutableSet?
Re: Remove/Disable NSPredicate from NSMutableSet?
- Subject: Re: Remove/Disable NSPredicate from NSMutableSet?
- From: Dave DeLong <email@hidden>
- Date: Tue, 23 Mar 2010 14:30:08 -0600
filterUsingPredicate: modifies the container in place. Unless you created a copy of the set/array before filtering, you can't go back to how it was before. Cocoa doesn't have versioned collections.
Dave
On Mar 23, 2010, at 2:27 PM, Robert Monaghan wrote:
> How does one remove a NSPredicate from an NSMutableSet?
> I want to reuse the NSMutableSet for another purpose, but I have to strip out the Predicate that I assigned.
> Passing "filterUsingPredicate:nil" causes an exception. Is there a way to do this? Or should I generate another NSMutableSet?
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