Ignore:
Timestamp:
Sep 26, 2008, 3:02:30 AM (16 years ago)
Author:
armahg@…
Message:

Updtated ToDo.txt with list of things that needed to be done. Added macros for MacPorts options (one letter flags like -dvc etc.) to MPInterpreter.h file

Location:
contrib/MacPorts_Framework
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • contrib/MacPorts_Framework/MPInterpreter.h

    r39279 r40216  
    6868#define MPHELPINSTFAILED        0  /*Installation of helper tool failed*/
    6969#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
    7088
    7189
  • contrib/MacPorts_Framework/MPInterpreter.m

    r39747 r40216  
    279279                }
    280280        } else {
    281                 array = [[NSMutableArray alloc] init];
     281                array = [[[NSMutableArray alloc] init] autorelease];
    282282        }
    283283        Tcl_Free((char *)tclElements);
     
    295295        array = [self arrayFromTclListAsString:list];
    296296        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) {
    298300                [dictionary setObject:[array objectAtIndex:(i + 1)] forKey:[array objectAtIndex:i]];
    299301        }
  • contrib/MacPorts_Framework/MPPort.m

    r39747 r40216  
    305305# pragma mark Exec methods
    306306- (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        }
    308313}
    309314
    310315- (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               
    312323}
    313324
    314325- (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        }
    316332}
    317333
  • contrib/MacPorts_Framework/ToDo.txt

    r39471 r40216  
    11TO DO LIST (because there seems to be too much to get done haha)
    22
    3 Guide like documentation
     3-       Add Port option #define macros to MPInterpreter
    44
    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
    610
    7 Ask Randall to look at perform exec methods
     11-       Move Authorizations functionality into a new MPAuthorization(s) class
    812
    9 Implement IPC Notifications mechanism between the Helper Tool and Framework
     13-       Modify MPNotifications to allow for possible hooks for Bindings
    1014
    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?
    1416
    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.