• 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
nsapp deactivate (update)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: [NSApp deactivate]; isn't working...
  • Next by Date: Re: NSWindow/NSPanel UI-violating question
  • Previous by thread: [NSApp deactivate]; isn't working...
  • Next by thread: Re: NSWindow/NSPanel UI-violating question
  • Index(es):
    • Date
    • Thread