Re: NSBeginAlertSheet (II)
Re: NSBeginAlertSheet (II)
- Subject: Re: NSBeginAlertSheet (II)
- From: Prachi Gauriar <email@hidden>
- Date: Mon, 20 Dec 2004 18:44:08 -0600
On Dec 20, 2004, at 6:22 PM, mark wrote:
You're also calling NSRunAlertSheet, right?
No, I wasn't. I can't find any documentation on it--using XCode and
asking
for API doc on "NSRunAlertSheet" doesn't return anything. Looking at
example programs that use NSBeginAlertSheet, I don't see it used in
those,
either… When do I use it?
I think Andrew was referring to NSRunAlertPanel, which probably isn't
what you need to do. If it's not documented, don't use it.
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