Copyright ©1995 by NeXT Computer, Inc. All Rights Reserved.
3 |
Common Classes and Functions
Classes
HashTable |
Inherits From: | Object |
Initializing and Freeing a HashTable |
![]() |
Initializes a new, default HashTable | |
![]() |
Initializes a new HashTable | |
![]() |
Initializes a new HashTable | |
![]() |
||
![]() |
Initializes a new HashTable | |
![]() |
||
![]() |
||
![]() |
Deallocates the HashTable | |
![]() |
Deallocates the HashTable's objects | |
![]() |
Conditionally frees the HashTable's associations | |
![]() |
||
![]() |
Empties the HashTable but retains its capacity |
Copying a HashTable |
![]() |
Returns an empty copy of the HashTable |
Manipulating Table Associations |
![]() |
Returns the number of objects in the table | |
![]() |
Indicates whether aKey is in the table | |
![]() |
Returns the value mapped to aKey | |
![]() |
Adds or updates akey/avalue pair | |
![]() |
||
![]() |
Removes akey/avalue pair |
Iterating Over All Associations |
![]() |
Begins process of iteration through the HashTable | |
![]() |
Moves to the next entry in the HashTable | |
![]() |
||
![]() |
Archiving |
![]() |
Read the HashTable from the typed stream stream | |
![]() |
Writes the HashTable to the typed stream stream |
List |
Inherits From: | Object |
Initializing a New List Object |
![]() |
Initializes the new List object | |
![]() |
Initializes the new List to hold at least numSlots objects |
Copying and Freeing a List |
![]() |
Returns a copy of the List allocated from zone | |
![]() |
Deallocates the List object |
Manipulating Objects by Index |
![]() |
Puts anObject in the List at index | |
![]() |
Adds anObject at the end of the List | |
![]() |
Removes the object located at index | |
![]() |
Removes the object at the end of the List |
![]() |
with:newObject | Puts newObject in place of the object at index |
![]() |
Returns the object at index | |
![]() |
Returns the object at the end of the List | |
![]() |
Returns the number of objects in the List |
Manipulating Objects by id |
![]() |
Adds anObject at the end of the List | |
![]() |
Adds anObject to the List, if it's not already in the List | |
![]() |
Removes first occurrence of anObject from the List | |
![]() |
Puts newObject in the List in place of anObject | |
![]() |
Returns the index of anObject |
Comparing and Combining Lists |
![]() |
Returns whether the two Lists have the same contents | |
![]() |
Adds the objects in otherList to the receiving List |
Emptying a List |
![]() |
Empties the List of its contents, but doesn't free the objects | |
![]() |
Deallocates all the objects in the List |
Sending Messages to the Objects |
![]() |
Sends an aSelector message to each object in the List | |
![]() |
Sends aSelector message with an argument to each object | |
![]() |
Managing the Storage Capacity |
![]() |
Returns the number of objects the List can store | |
![]() |
Sets the capacity of the List to at least numSlots objects |
Archiving |
![]() |
Writes the List to the typed stream stream | |
![]() |
Reads the List from the typed stream stream |
NXBundle |
Inherits From: | Object |
Initializing a New NXBundle object |
![]() |
Initializes a new object for the fullPath directory |
Getting and Freeing an NXBundle |
+ mainBundle | Returns the NXBundle for the directory of the executable | |
+ bundleForClass:classObject | Returns the NXBundle that loaded classObject | |
![]() |
Frees the receiving NXBundle, if it can be freed |
Getting a Bundled Class |
![]() |
Returns the principal class loaded by the receiver | |
![]() |
Returns the class object for the classname class |
Setting Which Resources To Use |
+ setSystemLanguages:(const char * const *)languageArray |
Informs the receiver of the user's language preferences |
Finding a Resource |
![]() |
Provides the full path to the filename resource | |
![]() |
||
![]() |
||
+ (BOOL)getPath:(char *)path | Provides the full path to the filename resource | |
![]() |
||
![]() |
||
![]() |
||
![]() |
Getting the Bundle Directory |
![]() |
Returns the full pathname of the NXBundle's directory |
Setting the Version |
![]() |
Sets the version that resources must match | |
![]() |
Returns the version that resources must match |
NXStringTable |
Inherits From: | HashTable : Object |
Initializing and Freeing an NXStringTable |
![]() |
Initializes a new NXStringTable | |
![]() |
Deallocates the NXStringTable |
Querying an NXStringTable |
![]() |
Returns the value that corresponds to aString |
Writing Elements |
![]() |
Reads the keys and values from fileName | |
![]() |
Writes the keys and values to fileName | |
![]() |
Reads the keys and values from stream | |
![]() |
Writes the keys and values to stream |
Storage |
Inherits From: | Object |
Initializing a New Storage Object |
![]() |
Initializes the Storage object | |
![]() |
Initializes the new object to store at least count elements | |
![]() |
||
![]() |
Copying and Freeing Storage Objects |
![]() |
Returns a copy of the Storage object allocated from zone | |
![]() |
Deallocates the Storage object and its contents |
Getting, Adding, and Removing Elements |
![]() |
Adds anElement at the end of the Storage array |
![]() |
at:(unsigned int)index | Puts anElement in the Storage array at index |
![]() |
Removes the element located at index | |
![]() |
Removes the last element |
![]() |
with:(void *)anElement | Replaces the element at index with anElement |
![]() |
Empties the Storage object but retains its capacity | |
![]() |
Returns a pointer to the element at index |
Comparing Storage Objects |
![]() |
Returns whether two Storage objects are the same |
Managing the Storage Capacity and Type |
![]() |
Returns the number of elements currently stored | |
![]() |
Returns the encoding for the type of elements stored | |
![]() |
Sets the capacity of the Storage array to at least numSlots | |
![]() |
Sets the number of elements stored to numSlots elements |
Archiving |
![]() |
Reads the Storage object from the typed stream stream | |
![]() |
Writes the Storage object to the typed stream stream |