Deprecated NSMapTable Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.8

mapTableWithStrongToStrongObjects

Returns a new map table object which has strong references to the keys and values. (Deprecated in OS X v10.8. Use strongToStrongObjectsMapTable instead.)

+ (id)mapTableWithStrongToStrongObjects
Return Value

A new map table object which has strong references to the keys and values.

Availability
  • Available in OS X v10.5 and later.
  • Deprecated in OS X v10.8.
Related Sample Code
Declared In
NSMapTable.h

mapTableWithStrongToWeakObjects

Returns a new map table object which has strong references to the keys and weak references to the values. (Deprecated in OS X v10.8. Use strongToWeakObjectsMapTable instead.)

+ (id)mapTableWithStrongToWeakObjects
Return Value

A new map table object which has strong references to the keys and weak references to the values.

Special Considerations

NSMapTable objects created using this method do not support weak references under Automatic Reference Counting (ARC).

Availability
  • Available in OS X v10.5 and later.
  • Deprecated in OS X v10.8.
Declared In
NSMapTable.h

mapTableWithWeakToStrongObjects

Returns a new map table object which has weak references to the keys and strong references to the values. (Deprecated in OS X v10.8. Use weakToStrongObjectsMapTable instead.)

+ (id)mapTableWithWeakToStrongObjects
Return Value

A new map table object which has weak references to the keys and strong references to the values.

Special Considerations

NSMapTable objects created using this method do not support weak references under Automatic Reference Counting (ARC).

Availability
  • Available in OS X v10.5 and later.
  • Deprecated in OS X v10.8.
Declared In
NSMapTable.h

mapTableWithWeakToWeakObjects

Returns a new map table object which has weak references to the keys and values. (Deprecated in OS X v10.8. Use weakToWeakObjectsMapTable instead.)

+ (id)mapTableWithWeakToWeakObjects
Return Value

A new map table object which has weak references to the keys and values.

Special Considerations

NSMapTable objects created using this method do not support weak references under Automatic Reference Counting (ARC).

Availability
  • Available in OS X v10.5 and later.
  • Deprecated in OS X v10.8.
Declared In
NSMapTable.h