• 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
Re: NSBeginAlertSheet (II)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBeginAlertSheet (II)


  • Subject: Re: NSBeginAlertSheet (II)
  • From: Matt Jaffa <email@hidden>
  • Date: Mon, 20 Dec 2004 18:52:41 -0700

This is how I am calling mine in my app:


NSBeginAlertSheet(@"Error with Port",@"Ok",nil,nil,PopUpAdd,nil,nil,nil,nil,@"A The Beginning Port value must be 1 or greater and under 65537");


Matt Jaffa
On Dec 20, 2004, at 6:25 PM, mark wrote:

Isn't the first parameter the title (which is required/@""), with the last
being an optional (can-be-nil) message? In the sheets docmentation
(Presenting A Series of Sheets), the example (deleteSelectedRows) code
snippet shows the message (last parameter) being nil.


However, I did try adding "errorMsg" as the last parameter (w/ and w/o the
first parameter being nil), but no sheet comes up.


From: Prachi Gauriar <email@hidden>
Date: Mon, 20 Dec 2004 18:44:08 -0600
To: mark <email@hidden>
Cc: Cocoa-Dev <email@hidden>
Subject: Re: NSBeginAlertSheet (II)

I think your problem is that you're mixing up the role of the title and
message arguments. You should have seen an error message in the
console stating that the message was nil, which is bad. Try this:


NSBeginAlertSheet(nil
nil, nil, nil,     // Just the OK button
[self window], // get controller's window
self,   // we'll be our own delegate
NULL,   // no did-end selector
NULL,            // no did-dismiss selector
NULL,   // no context info
errorMsg
);

-Prachi

_______________________________________________ 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


_______________________________________________ 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: NSBeginAlertSheet (II)
      • From: mark <email@hidden>
    • Re: NSBeginAlertSheet (II)
      • From: Prachi Gauriar <email@hidden>
References: 
 >Re: NSBeginAlertSheet (II) (From: mark <email@hidden>)

  • Prev by Date: Re: NSBeginAlertSheet (II)
  • Next by Date: Re: NSTableDataSource vs. NSOutlineViewDataSource
  • Previous by thread: Re: NSBeginAlertSheet (II)
  • Next by thread: Re: NSBeginAlertSheet (II)
  • Index(es):
    • Date
    • Thread