Re: Mac OSX cocoa equivalent of Windows MessageBox()?
Re: Mac OSX cocoa equivalent of Windows MessageBox()?
- Subject: Re: Mac OSX cocoa equivalent of Windows MessageBox()?
- From: Jonathan Hess <email@hidden>
- Date: Fri, 15 Feb 2008 01:49:10 -0800
Hey Pei-Yaun
I think you're looking for NSAlert. If you're interested presenting an
error to the user you might find this more interesting:
http://developer.apple.com/documentation/Cocoa/Conceptual/ErrorHandlingCocoa/CreateCustomizeNSError/chapter_4_section_1.html#/
/apple_ref/doc/uid/TP40001806-CH204-DontLinkElementID_13
Have fun with Cocoa -
Jon Hess
On Feb 15, 2008, at 1:42 AM, peiyuan wrote:
Hi,
I am new to cocoa.
I searched the list. There are only some info for carbon. What I
need is a small dialog window showing a little text and an "OK"
button. When I press the "OK" button. It just close and doesn't do
anything else.
Is there any equivalent on cocoa?
Thank you.
Pei-Yuan
@KCodes
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden