MPIndex |
Index of all ports
Superclass: MPMutableDictionary
Declared In: MPIndex.h
Maintains an in-memory cache of all available ports and their install status. The MPIndex class is analogous to the PortIndex files for every port collection (most users have just one collection listed in /opt/local/etc/macports/sources.conf).
initWithCapacity: |
Initialize a newly allocated index with enough memory for numItems ports
- (id)initWithCapacity:(unsigned)numItems;
numItems
ports |
Returns a new array conaining of all available ports
- (NSArray *)ports;
portNames |
Returns a new array of all port names
- (NSArray *)portNames;
setIndex |
Loads all ports into the index from the MacPorts backend
- (void)setIndex;
port: |
Returns the port with the given name
- (MPPort *)port:(NSString *)name;
name
portEnumerator |
Returns an enumerator of all ports
- (NSEnumerator *)portEnumerator;
removePort: |
Removes the port with the given name from the index
- (void)removePort:(NSString *)name;
name
setPort: |
Adds the port to the index
- (void)setPort:(MPPort *)port;
port
The default state for the port is "not installed"
Last Updated: Sunday, July 13, 2008