Re: va_list, formats to pass as arguments
Re: va_list, formats to pass as arguments
- Subject: Re: va_list, formats to pass as arguments
- From: "Matt Jarjoura" <email@hidden>
- Date: Mon, 19 Feb 2007 11:23:26 -0500
I think this is what you're looking for.
- (id)initWithFormat:(NSString *)format arguments:(va_list)argList;
On 2/19/07, Claudio Procida <email@hidden> wrote:
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
--
Matt Jarjoura
email@hidden
_______________________________________________
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