• 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 error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSNumber pointerValue
  • Next by Date: Re: Sorry for another NEWBIE question
  • Previous by thread: Palette window
  • Next by thread: Public Headers in Xcode Framework
  • Index(es):
    • Date
    • Thread