• 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: NSView no longer visible notification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView no longer visible notification?


  • Subject: Re: NSView no longer visible notification?
  • From: Pierre-Loïc Raynaud <email@hidden>
  • Date: Thu, 9 Feb 2006 23:17:36 +0100

I am writing a NSView subclass. I would like to be notified when that view is no longer visible. The situation that is causing this is that my subclass is in a NSTabView. I need to be notified when my view is no longer visible (i.e. when the selected tab changes).


Just override one of these NSView methods in your method :

- (void)viewDidMoveToWindow
– (void)viewWillMoveToWindow

Then test [self window] against nil. _______________________________________________
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


  • Prev by Date: WebView question
  • Next by Date: Re: NSView no longer visible notification?
  • Previous by thread: Re: NSView no longer visible notification?
  • Next by thread: NSButtonCell and title binding
  • Index(es):
    • Date
    • Thread