Re: NSView no longer visible notification?
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