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

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.

  • Follow-Ups:
    • Re: How to show a modal dialog from a call back proc function?
      • From: Chris Boot <email@hidden>
  • Prev by Date: Re: Can a menu title be colored?
  • Next by Date: launch app
  • Previous by thread: Simple web browser
  • Next by thread: Re: How to show a modal dialog from a call back proc function?
  • Index(es):
    • Date
    • Thread