• 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: Warning obsolete shouldCloseWindowController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning obsolete shouldCloseWindowController


  • Subject: Re: Warning obsolete shouldCloseWindowController
  • From: Erez Anzel <email@hidden>
  • Date: Thu, 29 Jan 2004 15:57:36 -0500

Thanks, Nick.

And the answer was just an option-double click away. Sorry for not thinking.

Seems like it'll take a bit more effort on my part to use canCloseDocumentWithDelegate rather than the old, simple canCloseDocument. Oh well.

Bye...Erez

On 28-Jan-04, at 10:10 PM, Nick Zitzmann wrote:


On Jan 28, 2004, at 6:36 PM, Erez Anzel wrote:

- (BOOL)canCloseDocument
{
return YES;
}

I included this method so that application windows will close without
saving.

Is it me? What should I be doing differently?

From the NSDocument documentation:

---
canCloseDocument

- (BOOL)canCloseDocument

This method has been deprecated. Instead use canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:.
---

Nick Zitzmann
<http://seiryu.home.comcast.net/>
<http://www.freshlysqueezedsoftware.com/>
S/MIME signature available upon request

UNIX: Where /sbin/init is Job #1.
_______________________________________________
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.

References: 
 >Warning obsolete shouldCloseWindowController (From: Erez Anzel <email@hidden>)
 >Re: Warning obsolete shouldCloseWindowController (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Doe each NSTableView requires its own controller?
  • Next by Date: Re: Any new/updated Cocoa books soon?
  • Previous by thread: Re: Warning obsolete shouldCloseWindowController
  • Next by thread: Screensaver/view positioning
  • Index(es):
    • Date
    • Thread