Re: Modal like window?
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.