Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tops command line help please



command line tool help (deciphering of man page) required for tops tool please:

how to tell tops to change a variable in a objective-c code file (if it can do that)? eg, say i've got this following code in Test.m and i want to change all uses of the test variable (but nothing else) to otherName :



#import "Test.h"

@implementation Test

- (Test *)initTest:(unsigned)val
{
if( self = [super init] ) {
test = val;
tester = @selector(test);
}
return self;
}

- (unsiged)test
{
test += test;
if( test < 100 )
return test;
else
[self test];
}

@end



and this is the hoped for result:



#import "Test.h"

@implementation Test

- (Test *)initTest:(unsigned)val
{
if( self = [super init] ) {
otherName = val;
tester = @selector(test);
}
return self;
}

- (unsiged)test
{
otherName += otherName;
if( otherName < 100 )
return otherName;
else
[self test];
}

@end



possible with tops? how?

thanks, ben.
_______________________________________________
darwin-userlevel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-userlevel
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.