Re: Cocoa dialog in CarbonLib App
Re: Cocoa dialog in CarbonLib App
- Subject: Re: Cocoa dialog in CarbonLib App
- From: Eric Schlegel <email@hidden>
- Date: Sat, 23 Sep 2006 13:44:35 -0700
On Sep 23, 2006, at 1:29 PM, Sanford Selznick wrote:
Hi Jaime,
The application is Palm's HotSync manager. The plug-in is a Mach-
O bundle that does the appropriate magic to hook up the API.
My window is in a Nib in the plug-in bundle and is controlled by a
subclass of NSWindowController.
I'm having the following problems:
1. The window behind mine (owned by HotSync) doesn't get updates
while mine is open.
Probably HotSync Manager is a WaitNextEvent-based app, and if you're
using [NSApplication runModalForWindow] to run your dialog, then the
HotSync Manager event loop is not running and isn't getting a chance
to receive EventRecords.
The only way to fix this would be to leave HotSync Manager's event
loop in control. That means you can't call runModalForWindow; you need
to just create your window and then return control back to the app.
This might just work for free. You might also need to call [NSWindow
windowRef] to get the WindowRef for the modal dialog and set its
modality to kWindowModalityAppModal explicitly with the
SetWindowModality Carbon API.
2. When I close the HotSync window after closing mine the HotSync
window just goes to the back and will never return to the front.
No idea offhand what's happening there.
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden