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