• 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
Re: Knowing when window closed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Knowing when window closed


  • Subject: Re: Knowing when window closed
  • From: Charles Bennett <email@hidden>
  • Date: Tue, 30 Jul 2002 08:27:19 -0400

Aidas wrote:
Hi,

I want to know and handle closing of two windows called "first" and
"second". How could I do this? If you can please add example too.


Thank you


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


This is not a flame, but rather than produce an example, I think in this case that it's important
for you to learn about delegate methods, notifications and how to read the
documentation. How to deal with a window closing is actually in the
NSWindow class documentation. Hint: Pull up the doc's on NSWindow and search for the word 'close'.

Depending on what you are trying to do, NSWindowController might be a good place to look too.

If you are having trouble with such fundamtal questions then
I'd suggest either Cocoa Programming for Mac OS X by Hillegass
and/or Building Cocoa Applications by Garfinkel and Mahoney IMHO both books
are pretty good for getting started.


Chuck


--
UPS Management software for OS X
http://www.powerguardian.com
_______________________________________________
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.

References: 
 >Knowing when window closed (From: Aidas <email@hidden>)

  • Prev by Date: Re: get the NSWindow instance
  • Next by Date: Re: What's the best way saving a string into PDF?
  • Previous by thread: Re: Knowing when window closed
  • Next by thread: Re: Knowing when window closed
  • Index(es):
    • Date
    • Thread