Up
Authors
Albin L. Jones (Albin.L.Jones@Dartmouth.EDU
)
Richard Frith-Macdonald (rfm@gnu.org
)
Date: Generated at 2024-11-07 16:52:01 -0500
Copyright: (C)
1994, 1995, 1996, 2002, 2009 Free Software Foundation, Inc.
class_NSMapTable
NSObject
NSObject
NSMapTable
NSMapTable
NSObject->NSMapTable
p_NSFastEnumeration
NSFastEnumeration
p_NSFastEnumeration->NSMapTable
p_NSCopying
NSCopying
p_NSCopying->NSMapTable
p_NSCoding
NSCoding
p_NSCoding->NSMapTable
Declared in:
Foundation/NSMapTable.h
Conforms to:
NSCoding
NSCopying
NSFastEnumeration
Availability: OpenStep
Description forthcoming.
+ (instancetype)
strongToStrongObjectsMapTable ;
Availability: OpenStep
Convenience method for creating a map table to
store object values using object keys. The collection
will retain both the key and the value.
+ (instancetype)
strongToWeakObjectsMapTable ;
Availability: OpenStep
Convenience method for creating a map table to
store object values using object keys. The collection
will retain the key, the value will be a zeroing weak
reference.
+ (instancetype)
weakToStrongObjectsMapTable ;
Availability: OpenStep
Convenience method for creating a map table to
store object values using object keys. The collection
will retain the value, the key will be a zeroing weak
reference.
+ (instancetype)
weakToWeakObjectsMapTable ;
Availability: OpenStep
Convenience method for creating a map table to
store object values using object keys. The collection
will use zeroing weak references for both the key and
the value.
- (
NSUInteger )
count ;
Availability: OpenStep
Return the number of items stored in the map.
- (
NSDictionary *)
dictionaryRepresentation ;
Availability: OpenStep
Return a dictionary containing the keys and values
in the receiver.
- (instancetype)
initWithKeyPointerFunctions: (
NSPointerFunctions *)keyFunctions
valuePointerFunctions: (
NSPointerFunctions *)valueFunctions
capacity: (
NSUInteger )initialCapacity;
Availability: OpenStep
Initialiser using full pointer function
information to describe the keys and values.
- (
NSEnumerator *)
keyEnumerator ;
Availability: OpenStep
Return an enumerator able to enumerate the keys in
the receiver.
- (
NSPointerFunctions *)
keyPointerFunctions ;
Availability: OpenStep
Return an NSPointerFunctions value describind the
functions used by the receiver to handle keys.
- (
NSEnumerator *)
objectEnumerator ;
Availability: OpenStep
Return an enumerator able to enumerate the values in
the receiver.
- (id)
objectForKey: (id)aKey;
Availability: OpenStep
Return the object stored under the specified key.
- (void)
removeAllObjects ;
Availability: OpenStep
Empty the receiver of all stored values.
- (void)
removeObjectForKey: (id)aKey;
Availability: OpenStep
Remove the object stored under the specified key.
- (void)
setObject: (id)anObject
forKey: (id)aKey;
Availability: OpenStep
Store the object under the specified key, replacing
any object which was previously stored under that key.
Calling the method with eitther a
nil
key or a nil
value has
no effect.
- (
NSPointerFunctions *)
valuePointerFunctions ;
Availability: OpenStep
Return an NSPointerFunctions value describind the
functions used by the receiver to handle values.
Up