Changeset 40216 for contrib/MacPorts_Framework
- Timestamp:
- Sep 26, 2008, 3:02:30 AM (16 years ago)
- Location:
- contrib/MacPorts_Framework
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/MacPorts_Framework/MPInterpreter.h
r39279 r40216 68 68 #define MPHELPINSTFAILED 0 /*Installation of helper tool failed*/ 69 69 #define MPHELPUSERCANCELLED 1 /*User cancelled privileged operation.*/ 70 71 72 #pragma mark MacPort Options 73 #define MPVERBOSE @"ports_verbose" 74 #define MPDEBUGOPTION @"ports_debug" 75 #define MPQUIET @"ports_quiet" 76 #define MPPROCESSALL @"ports_processall" 77 #define MPEXIT @"ports_exit" 78 #define MPFORCE @"ports_force" 79 #define MPIGNOREOLDER @"ports_ignore_older" 80 #define MPNODEPS @"ports_nodeps" 81 #define MPDODEPS @"ports_do_dependents" 82 #define MPSOURCEONLY @"ports_source_only" 83 #define MPBINARYONLY @"ports_binary_only" 84 #define MPAUTOCLEAN @"ports_autoclean" 85 #define MPTRACE @"ports_trace" 86 87 70 88 71 89 -
contrib/MacPorts_Framework/MPInterpreter.m
r39747 r40216 279 279 } 280 280 } else { 281 array = [[ NSMutableArray alloc] init];281 array = [[[NSMutableArray alloc] init] autorelease]; 282 282 } 283 283 Tcl_Free((char *)tclElements); … … 295 295 array = [self arrayFromTclListAsString:list]; 296 296 dictionary = [[NSMutableDictionary alloc] initWithCapacity:[array count]]; 297 for (i = 0; i < [array count]; i += 2) { 297 unsigned int array_count = [array count]; 298 299 for (i = 0; i < array_count; i += 2) { 298 300 [dictionary setObject:[array objectAtIndex:(i + 1)] forKey:[array objectAtIndex:i]]; 299 301 } -
contrib/MacPorts_Framework/MPPort.m
r39747 r40216 305 305 # pragma mark Exec methods 306 306 - (void)uninstallWithVersion:(NSString *)version error:(NSError **)mError { 307 [self execPortProc:@"mportuninstall" withOptions:nil version:version error:mError]; 307 if (version == nil) { 308 [self execPortProc:@"mportuninstall" withOptions:nil version:@"" error:mError]; 309 } 310 else { 311 [self execPortProc:@"mportuninstall" withOptions:nil version:version error:mError]; 312 } 308 313 } 309 314 310 315 - (void)activateWithVersion:(NSString *)version error:(NSError **)mError { 311 [self execPortProc:@"mportactivate" withOptions:nil version:version error:mError]; 316 if (version == nil) { 317 [self execPortProc:@"mportactivate" withOptions:nil version:@"" error:mError]; 318 } 319 else { 320 [self execPortProc:@"mportactivate" withOptions:nil version:version error:mError]; 321 } 322 312 323 } 313 324 314 325 - (void)deactivateWithVersion:(NSString *)version error:(NSError **)mError { 315 [self execPortProc:@"mportdeactivate" withOptions:nil version:version error:mError]; 326 if (version == nil) { 327 [self execPortProc:@"mportdeactivate" withOptions:nil version:@"" error:mError]; 328 } 329 else { 330 [self execPortProc:@"mportdeactivate" withOptions:nil version:version error:mError]; 331 } 316 332 } 317 333 -
contrib/MacPorts_Framework/ToDo.txt
r39471 r40216 1 1 TO DO LIST (because there seems to be too much to get done haha) 2 2 3 Guide like documentation 3 - Add Port option #define macros to MPInterpreter 4 4 5 Scrub Code 5 - Modify MPInterpreter so that its init process is modularized into sub routines. 6 The main goal of this modification is to allow implementation of the method below. 7 MPInterpreter will be able to conveniently create and delete its internal Tcl_interp object 8 9 - Modify MPMacPorts to have a setOptions:(NSArray *) method of various port options 6 10 7 Ask Randall to look at perform exec methods11 - Move Authorizations functionality into a new MPAuthorization(s) class 8 12 9 Implement IPC Notifications mechanism between the Helper Tool and Framework 13 - Modify MPNotifications to allow for possible hooks for Bindings 10 14 11 Modify evaluateStringAsString to try evaluating, try evaluating with privileges 12 if there is an error, then return if there is still an error for the special 13 privileged methods: sync, selfupdate, exec methods etc. 15 - Do an alternate GC compatible build? 14 16 15 16 Reimplement notifications so that, as Randall said, all threads should receive 17 all notifications that they have registered for 18 19 ... in coming ... rant ... 20 I am thinking of another scheme instead of notifications ... I don't think 21 Objective-C has high order functions ... but something cool would be for 22 us to just call some user defined method when a $ui_priority 23 call is made. So if say they wanted to update a progress bar during 24 -sync, we would just be calling whatever method they had to update the GUI. 25 26 I should read up some on Threading cause that might make things dicey ... 27 28 Also, we could throw in bindings support. How would this work? Don't know 29 yet ... 30 31 Fix bug in uninstall 17 - Move major port functionality from MPPort to MPMacPorts?
Note: See TracChangeset
for help on using the changeset viewer.