On 2009 Feb 26, at 23:39, Stuart Malin wrote:
BOOL isViewInFocus = [[[[self controlView] window] firstResponder]
isEqual:[self controlView]];
Is there perhaps a better way to determine if a view is "key" ?
No, but I believe you should also check that the control view's window
-isKeyWindow or -isMainWindow.
On 2009 Feb 26, at 23:58, Kyle Sluder wrote:
Well "focus" does have a meaning (see -[NSView lockFocus]), but I
figured you didn't mean that here.
Yes, about a week ago I concluded that, unfortunately, Cocoa uses the
word "focus" in two different contexts: "keyboard focus" and "drawing
focus". Someone please correct me if I'm wrong.
_______________________________________________
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