• 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: NSDocument notification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument notification


  • Subject: Re: NSDocument notification
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 24 Nov 2004 20:01:01 -0600

On Nov 24, 2004, at 7:32 PM, Greg wrote:

Are there any notifications I can listen for when you have multiple documents open and one that is not the front most is brought to the front and made the current document or do I have to subclass NSDocumentController?

How about NSWindowDidBecomeKeyNotification? That will allow you to obtain the NSWindow of what just became key. Given that window, you could always get its document with NSDocumentController's documentForWindow.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
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


References: 
 >NSDocument notification (From: Greg <email@hidden>)

  • Prev by Date: Re: Performance with keyed archives
  • Next by Date: Unicode case conversion
  • Previous by thread: NSDocument notification
  • Next by thread: NSDocument notification
  • Index(es):
    • Date
    • Thread