How to show a modal dialog from a call back proc function?
How to show a modal dialog from a call back proc function?
- Subject: How to show a modal dialog from a call back proc function?
- From: Willa Zhang <email@hidden>
- Date: Mon, 26 Aug 2002 16:34:13 -0700
Hi,
I have to show a modal dialog from my Carbon library via a call back
proc, which is a C function by calling [gMyDialog showMyDialog: nil],
the dialog doesn't show up at all, leaves a piece of white space on
the screen. If I display the dialog once from the menu item, then the
call back proc can display the dialog but there is no response when I
click any buttons on the dialog. Seems there are no events, NSEvent
is null in the proc.
- ( void ) awakeFromNib {
gMyDialog = self;
}
I am new to Cocoa, for Carbon app in this case I just need to call
WaitNextEvents to get the events to the modal dialog. How do I do it
in Cocoa app? Is there a similar function to WaitNextEvents?
I appreciate any help.
Willa
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.