• 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: Remove/Disable NSPredicate from NSMutableSet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Remove/Disable NSPredicate from NSMutableSet? (From: Robert Monaghan <email@hidden>)

  • Prev by Date: Remove/Disable NSPredicate from NSMutableSet?
  • Next by Date: ANN: Accessorizer 1.7 update includes delegate detection, sets @property attribute to assign
  • Previous by thread: Remove/Disable NSPredicate from NSMutableSet?
  • Next by thread: Re: Remove/Disable NSPredicate from NSMutableSet?
  • Index(es):
    • Date
    • Thread