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

canCloseDocumentWithDelegate


  • Subject: canCloseDocumentWithDelegate
  • From: "Peter Hudson" <email@hidden>
  • Date: Thu, 26 Feb 2004 14:35:22 +0000

I notice that the method canCloseDocument is deprecated.

I therefore want to use canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo.

I have overridden this method in my document class and perform some clean up in it. I want to then proceed to close the document. To do this the documentation tells me to "call the callback with YES"

I assume the callback is the shouldCloseSelector. How do I call it with YES. I can't find an example of calling a selector.

Peter
_______________________________________________
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.


  • Follow-Ups:
    • Re: canCloseDocumentWithDelegate
      • From: Ryan Bates <email@hidden>
  • Prev by Date: Re: Extending NSMutableDictionary what am I doing wrong?
  • Next by Date: Setting windows attrubutes to use applicationShouldTerminateAfterLastWindowClosed:
  • Previous by thread: Re: Extending NSMutableDictionary what am I doing wrong?
  • Next by thread: Re: canCloseDocumentWithDelegate
  • Index(es):
    • Date
    • Thread