Re: How to show a modal dialog from a call back proc function?
Re: How to show a modal dialog from a call back proc function?
- Subject: Re: How to show a modal dialog from a call back proc function?
- From: Chris Boot <email@hidden>
- Date: Tue, 27 Aug 2002 01:51:23 +0200
Hi,
You can only mix and match Cocoa and Carbon interface elements (or anything
requiring an event loop) starting with Jaguar. Check out
http://developer.apple.com/techpubs/macosx/Essentials/CarbonCocoaDoc/index.h
tml for more info.
>
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.
HTH,
--
Chris Boot
email@hidden
"Modem error handling really su~c%dk,s.^D^D&x@R*cCKo#?CB,*o#?C!!b %o#?
NO CARRIER
_______________________________________________
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.