Re: Parameter lists
Re: Parameter lists
- Subject: Re: Parameter lists
- From: Glen Simmons <email@hidden>
- Date: Fri, 7 Nov 2003 12:09:46 -0600
I just tried this method in a new project and it worked fine. Out of
curiosity, why not use the "normal" convention of having a second part
of the method name? i.e.
- (void) clearScreenFields:(int)sortCheck checkRed:(BOOL)redCheck;
Glen
On Nov 7, 2003, at 11:34 AM, John MacMullin wrote:
Ok, as to the first suggestion, in the method definition, the change
worked.
First:
- (void) clearScreenFields:(int)sortCheck :(BOOL)redCheck;
Again, this now works.
However, the following still does not work.
[self clearScreenFields:clearAndSort :noRedDisplay];
I still get a compile error. When I remove the ":noRedDisply" and
recompile, I get no error.
It would seem that cocoa is not following standard c, or objective-c,
conventions for multiple parameters. I believe that Apple should.
John
On Friday, November 7, 2003, at 12:04 AM, Nick Zitzmann wrote:
On Nov 6, 2003, at 10:18 PM, John MacMullin wrote:
I have a method in which I am trying to pass multiple parameters as
follows:
- (void)clearScreenFields:(int)sortCheck, (BOOL)redCheck
{
}
If you replace the ", " with a ":", then that should work...
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/
S/MIME signature available upon request
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone." - Bjarne Stroustrup
_______________________________________________
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.
_______________________________________________
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.