mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-02-26 23:05:34 +00:00
Added +mapTableWithWeakToWeakObjects
This commit is contained in:
parent
a093d259e6
commit
018010b6dc
@ -41,6 +41,7 @@ typedef struct {
|
||||
struct _NSMapNode **buckets;
|
||||
}
|
||||
|
||||
+mapTableWithWeakToWeakObjects;
|
||||
+mapTableWithWeakToStrongObjects;
|
||||
+mapTableWithStrongToStrongObjects;
|
||||
|
||||
|
@ -420,6 +420,10 @@ NSString *NSStringFromMapTable(NSMapTable *table){
|
||||
return string;
|
||||
}
|
||||
|
||||
+mapTableWithWeakToWeakObjects {
|
||||
return [NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,NSNonRetainedObjectMapValueCallBacks,0) autorelease];
|
||||
}
|
||||
|
||||
+mapTableWithWeakToStrongObjects {
|
||||
return [NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,NSObjectMapValueCallBacks,0) autorelease];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user