Skip to content

Behaves exactly like an NSMutableSet, but doesn't retain the objects.

License

Notifications You must be signed in to change notification settings

JaviSoto/MSWeakMutableSet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MSWeakMutableSet

Behaves exactly like an NSMutableSet, but doesn't retain the objects.

Usage

Just create an NSMutableSet object by calling this constructor on MSWeakMutableSet:

#import "MSWeakMutableSet.h"

NSMutableSet *weakSet = [MSWeakMutableSet weakMutableSet];

[weakSet addObject:self]; // This doesn't retain self.

Compatibility

  • Doesn't support ARC at the moment. Build with -fno-objc-arc if you use ARC.
  • Compatible with any version of iOS and Mac OSX.

License

MSWeakMutableSet is available under the MIT license. See the LICENSE file for more info.

About

Behaves exactly like an NSMutableSet, but doesn't retain the objects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published