• 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 Randolph <email@hidden>
  • Date: Fri, 7 Nov 2003 18:09:51 -0800

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
{
}

I am sending the following:

[self clearScreenFields:clearAndNoSort, redDisplay];}

This is patterned after the Objective-C pocket reference at pages 18-20.

Let's see... According to the grammar:

method-selector:
unary-selector
keyword-selector [ , ... ]
keyword-selector [ , parameter-type-list ]

So, it would appear that John is seeing a compiler bug. As far as I know, none of the code we write at Apple uses comma separated parameter-type-lists, but we use varargs in several places. (+stringWithFormat: being the first one that springs to mind.)

-jcr


John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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>
References: 
 >Parameter lists (From: John MacMullin <email@hidden>)

  • Prev by Date: Re: Parameter lists
  • Next by Date: Re: Parameters
  • Previous by thread: Re: Parameter lists
  • Next by thread: Re: Parameter lists
  • Index(es):
    • Date
    • Thread