• 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
Window Controller and performClose
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Window Controller and performClose


  • Subject: Window Controller and performClose
  • From: Seth Willits <email@hidden>
  • Date: Fri, 29 Apr 2005 10:52:27 -0700

Hi All,


I've got a standard document application setup with a custom window controller that does all of the user-interface work. I need to trap the performClose method in the window controller because I have to handle it differently than the sheet automatically popping down asking to save the document or simply closing the window if the document is already saved.


NSWindow's documentation says that if its delegate responds to performClose: then it'll send the message there instead of handling on its own. So I figured that since the window controller is the window's delegate I should be getting the performClose method there and all will be honki dori, but this isn't the case. The performClose method in the window controller is never getting called, and I still see the standard document behavior.

Any ideas?




Seth Willits ---------------------------------------------------------- Freak Software - http://www.freaksw.com/ ResExcellence - http://www.resexcellence.com/realbasic/ ----------------------------------------------------------

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Window Controller and performClose
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: id type field of an attribute ?
  • Next by Date: CustomView
  • Previous by thread: Overlay windows
  • Next by thread: Re: Window Controller and performClose
  • Index(es):
    • Date
    • Thread