Newbie question about closing windows
Newbie question about closing windows
- Subject: Newbie question about closing windows
- From: Jaime Rios <email@hidden>
- Date: Fri, 10 Aug 2001 11:26:17 -0400
I had already tried that, but it did not work. The class I am calling the
close from is derived from NSObject. It is my controller class for my window
and the function being called is the action attached to my OK button. I was
hoping that when the user hits the OK button that it would save what was on
that window(which it actually does) and closes it for them. Thanks again!
On Friday, August 10, 2001, at 09:48 , Jaime Rios wrote:
>
How do you close a window with cocoa programmically? I tried the
>
[pPrefWnd performClose:self]
>
function but that doesn't seem to work. Thanks in advanced!
>
Try [pPrefWnd close]. If you are implementing the window delegate
methods affecting closing behavior, it would be a possible explanation
for why performClose: is not working since performClose: will cause the
closing notifications to be sent.
Dave
--
Chaos Assembly Werks
"A lie can run around the world before the truth can get its boots on."
- Israel Zangwill (not Edward R. Murrow)