Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView no longer visible notification?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.