mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Add methods from 10.8 for using zeroing weak references in collections.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35877 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
66364a9465
commit
69d4344a0a
8 changed files with 110 additions and 10 deletions
|
@ -55,6 +55,15 @@ extern "C" {
|
|||
*/
|
||||
+ (id) pointerArrayWithPointerFunctions: (NSPointerFunctions *)functions;
|
||||
|
||||
/** Returns a new pointer array for storing strong (retained) references to
|
||||
* objects.
|
||||
*/
|
||||
+ (id) strongObjectsPointerArray;
|
||||
/** Returns a new pointer array for storing zeroing weak references to objects.
|
||||
*/
|
||||
+ (id) weakObjectsPointerArray;
|
||||
|
||||
|
||||
/** Removes all nil/zero items from the array.
|
||||
*/
|
||||
- (void) compact; // eliminate NULLs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue