Skip navigation.
 
mlRe: Window Controller and performClose
FROM : Seth Willits
DATE : Sat Apr 30 21:32:51 2005

On Apr 29, 2005, at 10:52 AM, Seth Willits wrote:

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



Anyone? I don't want to be a pest but I really don't know why the 
docs seem to be misleading.





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

Related mailsAuthorDate
mlWindow Controller and performClose Seth Willits Apr 29, 19:52
mlRe: Window Controller and performClose Seth Willits Apr 30, 21:32
mlRe: Window Controller and performClose Darkshadow Apr 30, 22:39
mlRe: Window Controller and performClose Seth Willits May 2, 02:29