• 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
Application automatically unhiding on login
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application automatically unhiding on login


  • Subject: Application automatically unhiding on login
  • From: Simone Manganelli <email@hidden>
  • Date: Mon, 6 Oct 2003 15:44:49 -0700

I'm trying to track down a problem that has existed for some time (and only recently brought to my attention) I'm having with one of the applications that I've developed. What happens is that if you put my application in the Login Items preference pane, and set it to hide upon login, my app launches on login as requested, but then hides and immediately unhides. I've tried looking in the most obvious places for bits of code that would cause this to happen (like the place where my application decides which windows to show upon launch), but I just can't find anything that will stop the problem from happening.

I implemented placeholders for the delegates (which just show when the functions are called) for applicationWillFinishLaunching, applicationDidFinishLaunching, applicationWillHide, applicationDidHide, applicationWillUnhide, and applicationDidUnhide, and it seems that my application is getting one of each function call. Sometimes the order is willFinishLaunching, willHide, didHide, didFinishLaunching, and sometimes the order is willFinishLaunching, didFinishLaunching, willHide, and didHide, but in every case, the willUnhide and didUnhide function calls always seem to be last -- so I don't see any good way of implementing a workaround for this problem.

Does anybody have any ideas as to what would cause this issue and what to look for in my code in order to fix this? Any ideas would be much appreciated. Thanks.

-- Simone Manganelli
_______________________________________________
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: [ANN] ActiveWire OS X Driver & Framework
  • Next by Date: Re: NSAcceptMisspelledSelectors and - (void)performMethodsUsingFuzzyM ethodNameMatching
  • Previous by thread: [ANN] ActiveWire OS X Driver & Framework
  • Next by thread: Re: NSAcceptMisspelledSelectors and - (void)performMethodsUsingFuzzyM ethodNameMatching
  • Index(es):
    • Date
    • Thread