• 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
Possible AppKit bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible AppKit bug


  • Subject: Possible AppKit bug
  • From: Nicholas Shanks <email@hidden>
  • Date: Sat, 05 May 2001 11:32:32 +0100

I'm new to cocoa, but implement the following code in my application
delegate and it doesn't work right:


- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication
*)theApplication
{
return YES;
}

- (void)applicationWillTerminate:(NSNotification *)notification
{
// this doesn't seem to be called when last window closed
}


When I choose Command-Q, my app-will-terminate routine gets called, when I
click the close box of my only window, it does not. The application does
however terminate correctly.

Also, could someone tell me the difference between a delegate and a
controller?

Nicholas Shanks
--

ICQ: 55542254


  • Prev by Date: Unicode to CGGlyph ?
  • Next by Date: Using the Security Framework
  • Previous by thread: Re: Unicode to CGGlyph ?
  • Next by thread: Using the Security Framework
  • Index(es):
    • Date
    • Thread