va_list error?
va_list error?
- Subject: va_list error?
- From: Lance Drake <email@hidden>
- Date: Wed, 19 Nov 2003 12:39:20 -0700
In an attempt to create an NSString for use with
an NSRunAlertPanel, I tried to implement the
NSString function 'initWithFormat'. It specifies
a va_list be supplied as the second argument.
The compiler is returning the error
"'va_start' used in function with fixed args"
when I do the following:
if(noErr != err)
{
va_list args;
va_start(args err); <-- error indicated here
...do the NSRunAlertPanel ...
va_end(args);
}
Any thoughts as to why this is a problem?
Thanks,
Lance Drake
_______________________________________________
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.