• 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: Modal like window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal like window?


  • Subject: Re: Modal like window?
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Tue, 28 Oct 2003 15:09:41 +0000

On Tuesday, October 28, 2003, at 02:24 pm, email@hidden wrote:

The problem I have is that when this window is displayed (using [NSApp
runModalForWindow:(NSWindow*)theWindow]) I don't get the background
notifications of device arrival/removal.

My guess is that because the USB notifications use the RunLoop and the
window is running modally the runloop is not processing messages.

Anyone any ideas how I can get around this problem?

Take a look at section 3.4.1 of my FAQ, which you can get here:

http://www.alastairs-place.net/cocoa/faq.txt

which gives an example of a loop that you should be able to use to process messages in whatever run-loop mode you like. You'll need to send -makeKeyAndOrderFront: to your window before entering the loop to get similar behaviour to -runModalForWindow:.

Kind regards,

Alastair.
_______________________________________________
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: 
 >Modal like window? (From: email@hidden)

  • Prev by Date: Re: What is the maximum size of an NSString?
  • Next by Date: Re: Passing Obj-C method as callback to C function
  • Previous by thread: Modal like window?
  • Next by thread: changing color in NSImage
  • Index(es):
    • Date
    • Thread