NSAlert alertWithMessageText does not allow nil 'informativeTextWithFormat'?
NSAlert alertWithMessageText does not allow nil 'informativeTextWithFormat'?
- Subject: NSAlert alertWithMessageText does not allow nil 'informativeTextWithFormat'?
- From: "Sean McBride" <email@hidden>
- Date: Thu, 3 Mar 2005 14:59:10 -0500
- Organization: Rogue Research
Hi all,
So I had a need to show a quick error message in a sheet and see that
10.3 has a new NSAlert class. There is the construction method:
alertWithMessageText:defaultButton:alternateButton:otherButton:
informativeTextWithFormat:
which is quite convenient (but for some reason discouraged in favour of
many lines of code setting every characteristic individually). Anyway,
the docs say:
"...The optional informative text..." yet if I pass nil for the last
parameter I get:
2005-03-03 14:51:31.809 MyApp[727] *** -[NSPlaceholderString
initWithFormat:locale:arguments:]: nil string (or other) argument
Is this a bug?
Thanks!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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