• 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
Newbie question about closing windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)


  • Prev by Date: Re: Programatically Designing a GUI
  • Next by Date: Centering documentView in ScrollView
  • Previous by thread: Re: Newbie window question
  • Next by thread: Centering documentView in ScrollView
  • Index(es):
    • Date
    • Thread