• 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
va_list, formats to pass as arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

va_list, formats to pass as arguments


  • Subject: va_list, formats to pass as arguments
  • From: Claudio Procida <email@hidden>
  • Date: Mon, 19 Feb 2007 16:51:24 +0100

Hi,
I'm trying to write a NSURL addition URLWithFormat: to save some code and improve readability, but I'm stuck with the implementation.


I know how to implement this in C (va_list etc.), but I don't know how to do it in Objective-C :(

+ (NSURL *)URLWithFormat:(NSString *)fmt, ...
{
return [self URLWithString:[NSString stringWithFormat:fmt, /*... then what??? */]];
}


Thanks in advance
--
Claudio Procida
Emeraldion Lodge
http://www.emeraldion.it


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: va_list, formats to pass as arguments
      • From: "Philip Q" <email@hidden>
    • Re: va_list, formats to pass as arguments
      • From: "Stephen Deken" <email@hidden>
    • Re: va_list, formats to pass as arguments
      • From: "Matt Jarjoura" <email@hidden>
  • Prev by Date: class variables
  • Next by Date: Re: class variables
  • Previous by thread: Re: class variables
  • Next by thread: Re: va_list, formats to pass as arguments
  • Index(es):
    • Date
    • Thread