Fwd: Parameter lists
Fwd: Parameter lists
- Subject: Fwd: Parameter lists
- From: John MacMullin <email@hidden>
- Date: Fri, 7 Nov 2003 12:38:13 -0700
The compile error is:
pcCompanyDivTab.m:92: error: parse error before ';' token
Again, I don't get this error when I remove the ":redDisplay".
John
Begin forwarded message:
>
From: John MacMullin <email@hidden>
>
Date: Fri Nov 7, 2003 10:34:36 AM America/Phoenix
>
To: Nick Zitzmann <email@hidden>, j o a r <email@hidden>
>
Cc: email@hidden
>
Subject: Re: Parameter lists
>
>
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.