Hi,
I have:
- (void)function1
{
NSNumber *moveUp = [NSNumber numberWithBool:NO];
[self function2:moveUp];
//value of moveUp after returning from function2 is the previous one
and not the value thats changed in function2
// so the value [moveUp boolValue] here is still 'NO'
}
- (void)function2:(NSNumber *)value
{
value = [NSNumber numberWithBool:YES];
}
How to change a parameter's value this way from inside a second method.
Will taking moveUp as global, is the solution. haven't tried that yet.
Please help
Thanks,
Nick
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]