• 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
NSAlert alertWithMessageText does not allow nil 'informativeTextWithFormat'?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSAlert alertWithMessageText does not allow nil 'informativeTextWithFormat'?
      • From: Edward Hillenbrand <email@hidden>
  • Prev by Date: Re: Creating a JavaVM with JNI
  • Next by Date: Re: How do i wrap a set of flies?
  • Previous by thread: Re: How do i wrap a set of flies?
  • Next by thread: Re: NSAlert alertWithMessageText does not allow nil 'informativeTextWithFormat'?
  • Index(es):
    • Date
    • Thread