nsapp deactivate (update)
nsapp deactivate (update)
- Subject: nsapp deactivate (update)
- From: Philip George <email@hidden>
- Date: Thu, 03 Jul 2003 23:53:16 -0500
Okay, I found something in the archives that talks about this issue, but the
code provided didn't do anything different.
I implement the method:
- (void)applicationWillBecomeActive:(NSNotification *)aNotification {
GetFrontProcess(&_activeApp);
_interruptedOtherApp = YES;
}
and at the bottom of my method that handles the closing of my dialog window,
I now have:
...
[NSApp deactivate];
if (_interruptedOtherApp == YES) {
SetFrontProcess(&_activeApp);
_interruptedOtherApp = NO;
}
The two globals are defined:
ProcessSerialNumber _activeApp;
BOOL _interruptedOtherApp;
And the Carbon framework is getting linked in fine. I use a ton of other
Carbon API calls, so I know that's all a-ok.
Thanks.
- Philip
_______________________________________________
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.