• 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: Objective-C variadic methods vs. NSArray et al.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C variadic methods vs. NSArray et al.


  • Subject: Re: Objective-C variadic methods vs. NSArray et al.
  • From: Bill Bumgarner <email@hidden>
  • Date: Fri, 21 Nov 2008 16:02:47 -0800

On Nov 21, 2008, at 3:52 PM, Clark Cox wrote:
two ways to do this:

1) Have the information encoded in the first parameter (like a printf
format string)
2) Have some sentinel value marking the end of the list (like the nil
passed to arrayWithObjects:)

3) Have a second parameter that provides the count:

- (void) readCount: (unsigned int) count stuffs: (Stuff *) aStuff, ...;

b.bum

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Objective-C variadic methods vs. NSArray et al.
      • From: "Clark Cox" <email@hidden>
References: 
 >Objective-C variadic methods vs. NSArray et al. (From: Scott Thompson <email@hidden>)
 >Re: Objective-C variadic methods vs. NSArray et al. (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Re: Objective-C variadic methods vs. NSArray et al.
  • Next by Date: Interface Builder simulator
  • Previous by thread: Re: Objective-C variadic methods vs. NSArray et al.
  • Next by thread: Re: Objective-C variadic methods vs. NSArray et al.
  • Index(es):
    • Date
    • Thread