Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
- Subject: Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
- From: Jerry Krinock <email@hidden>
- Date: Fri, 27 Feb 2009 09:18:59 -0800
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 (email@hidden)
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:
This email sent to email@hidden