Re: Parameters
Re: Parameters
- Subject: Re: Parameters
- From: Glen Simmons <email@hidden>
- Date: Fri, 7 Nov 2003 17:28:26 -0600
On Nov 7, 2003, at 4:25 PM, John MacMullin wrote:
1. After some experimentation, the following works:
#define clearAndSort -1
#define noRedDisplay NO;
[self clearScreenFields:clearAndSort checkRed:[self setNoRedDisplay]];
- (bool)setNoRedDisplay
{
return noRedDisplay;
}
FYI: by convention, a setXXX method does not return the value, it sets
an instance variable. This is expected by the framework in a few areas
like key value coding, so one might say it's almost a requirement.
i.e.
- (BOOL)noRedDisplay {
return noRedDisplay;
}
// Obviously this would not work in the example above. noRedDisplay
would need to be an instance variable
- (void)setNoRedDisplay:(BOOL)inFlag {
noRedDisplay = inFlag;
}
HTH,
Glen
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >Parameters (From: John MacMullin <email@hidden>) |