• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Parameter lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parameter lists


  • Subject: Re: Parameter lists
  • From: John MacMullin <email@hidden>
  • Date: Fri, 7 Nov 2003 10:34:36 -0700

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.

  • Follow-Ups:
    • Re: Parameter lists
      • From: Alastair Houghton <email@hidden>
    • Re: Parameter lists
      • From: j o a r <email@hidden>
    • Re: Parameter lists
      • From: Clark Cox <email@hidden>
    • Re: Parameter lists
      • From: Glen Simmons <email@hidden>
References: 
 >Re: Parameter lists (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSBrowser problems
  • Next by Date: Re: Controller Layer + array count + NSOutlineView
  • Previous by thread: Re: Parameter lists
  • Next by thread: Re: Parameter lists
  • Index(es):
    • Date
    • Thread