Hi. I realize this is a basic Cocoa question, but now that I need to know, I can't find the answer in the NSView or NSResponder docs.
Do NSViews have the notion of being "active" or "inactive?" My app architecture requires that I be able to differentiate, at draw time, between a (custom) view that is in the frontmost window (and technically, has focus), and a similar custom view that is in a non-frontmost window. In my case, I have "Tool" objects (think of a line tool or rectangle tool in a drawing program). These are singleton objects in the app, and hence a line tool is shared among all document views. If the frontmost view is in the middle of a tool operation, and one of the inactive views updates its view, it shows the current tool drawing state (Tool objects get a chance to draw). I'd like for my custom view to not give the Tool an opportunity to draw when it is not focussed/frontmost. Thanks! -- Rick _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com