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?
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com