• 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: Why add a nil item to an NSArray ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why add a nil item to an NSArray ?


  • Subject: Re: Why add a nil item to an NSArray ?
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 28 Jun 2005 00:30:14 +0200

Mark,

On 28.6.2005, at 0:20, Mark Munz (DevList) wrote:

Is this maybe something left over from the past?

Yeah, from the glamorous past :)

The variable argument method already has process a variable list of arguments already and can easily determine when the end is reached.

... using the nil argument :)

Other methods like [NSString stringWithFormat:(NSString*)format,...]
work as you would expect.

Have you ever tried [NSString stringWithFormat:@"%@"]? :))) --- Ondra Čada OCSoftware: email@hidden http://www.ocs.cz private email@hidden http://www.ocs.cz/oc


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Why add a nil item to an NSArray ? (From: Martin Ottenwaelter <email@hidden>)
 >Re: Why add a nil item to an NSArray ? (From: SA Dev <email@hidden>)
 >Re: Why add a nil item to an NSArray ? (From: "Mark Munz (DevList)" <email@hidden>)

  • Prev by Date: Re: Why add a nil item to an NSArray ?
  • Next by Date: Re: Why add a nil item to an NSArray ?
  • Previous by thread: Re: Why add a nil item to an NSArray ?
  • Next by thread: Re: Why add a nil item to an NSArray ?
  • Index(es):
    • Date
    • Thread