• 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
Re: NSWindowController that closes itself
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController that closes itself


  • Subject: Re: NSWindowController that closes itself
  • From: Dan Bernstein <email@hidden>
  • Date: Wed, 14 Nov 2001 10:44:48 +0200

On Wednesday, November 14, 2001, at 10:02 AM, Erik M. Buck wrote:

I also note from the documentation that the entire solution presented in
unnecessary because -performClose: evidently calls -windowShouldClose: as
the original poster wanted.

Hey, that's me! :-)

So you're suggesting that I move the code I currently have in windowWillClose (including the [self autorelease]) to windowShouldClose? Can I rely on the window actually being closed if I return YES from windowShouldClose?

TIA,
--
Dan Bernstein


References: 
 >Re: NSWindowController that closes itself (From: "Erik M. Buck" <email@hidden>)

  • Prev by Date: Re: Threading, save panels, and segfaults
  • Next by Date: RE: How do I debug a pref pane?
  • Previous by thread: Re: NSWindowController that closes itself
  • Next by thread: Re: NSWindowController that closes itself, revisited
  • Index(es):
    • Date
    • Thread