• 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: How to show a modal dialog from a call back proc function?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >How to show a modal dialog from a call back proc function? (From: Willa Zhang <email@hidden>)

  • Prev by Date: launch app
  • Next by Date: Re: HotKeys in Cocoa
  • Previous by thread: How to show a modal dialog from a call back proc function?
  • Next by thread: launch app
  • Index(es):
    • Date
    • Thread