• 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
applicationDidHide - Not Getting Triggered?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applicationDidHide - Not Getting Triggered?


  • Subject: applicationDidHide - Not Getting Triggered?
  • From: Jason Teagle <email@hidden>
  • Date: Sat, 19 May 2012 09:48:53 +0100
  • Organization: Organised Bytes Software

Apologies for a newbie question.

I've just tried my first normal Mac application in Xcode (so far I had only created an iOS app and a Mac screensaver).

Everything went fine (after I fixed an incorrect alloc), but it's what happens at the end of the app's (apparent) lifetime that has got me slightly bemused. I'm running this under the debugger, if that makes a difference.

If I Command-Q the main window, the debug session terminates as expected. If I only click the close button, the window vanishes but debugging doesn't stop. It took me a few minutes to figure out that this wasn't something dumb I'd done, but standard Mac app behaviour, whereby it hides for fast startup next time rather than actually quits (I *think* I've got that right?).

To confirm that that was what was happening, I tried to trap applicationDidHide: - so I literally added

- (void)applicationDidHide:(NSNotification *)aNotification
{
}

into the delegate's .m file. I'm confident that I don't need anything to match in the .h file as this is an override, and applicationDidFinishLaunching: isn't in the .h file either.

I have a breakpoint in there (on a dummy variable initialisation), but it doesn't get hit when I click the main window's close button.

Have I misunderstood something?

Thanks in advance.

--
Jason Teagle
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: applicationDidHide - Not Getting Triggered?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Views & Staying On Top / Accessing Across Apps
  • Next by Date: Re: applicationDidHide - Not Getting Triggered?
  • Previous by thread: Re: Views & Staying On Top / Accessing Across Apps
  • Next by thread: Re: applicationDidHide - Not Getting Triggered?
  • Index(es):
    • Date
    • Thread