• 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: j o a r <email@hidden>
  • Date: Fri, 7 Nov 2003 08:32:28 +0100

Try this:

- (void) clearScreenFields:(int)sortCheck :(BOOL)redCheck;

And then:

[self clearScreenFields: clearAndNoSort : redDisplay];

It's all documented here:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/
index.html>

For Cocoa/ObjC conventions I also suggest reading this:

<http://developer.apple.com/documentation/Cocoa/Conceptual/
CodingGuidelines/index.html>

j o a r

On 2003-11-07, at 07.18, 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.
>
> All I get is compile errors. I suspect that I have to do something
> different with multiple parameter methods in cocoa.
>
> Any help would be greatly appreciated.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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: 
 >Parameter lists (From: John MacMullin <email@hidden>)

  • Prev by Date: Ascertaining the top line in a view
  • Next by Date: Re: Does pserver work from Xcode?
  • Previous by thread: Re: Parameter lists
  • Next by thread: Re: Parameter lists
  • Index(es):
    • Date
    • Thread