On Feb 26, 2009, at 10:33 AM, Kyle Sluder wrote:

What is "focus"?  Do you mean when the outline view becomes key, or
when the window becomes key, or something else?

--Kyle Sluder

I meant that the view becomes "key." I used the term "focus" because a focus ring gets (well, may get) drawn. And because that was the term used in some sample code I was looking at, which had this line (which is in a cell's -drawInteriorWithFrame:inView: method):

BOOL isViewInFocus = [[[[self controlView] window] firstResponder] isEqual:[self controlView]];

Is there perhaps a better way to determine if a view is "key" ?

~~~

What my post concerned is that when some other view becomes key from the OutlineView having been key, the OV delegate receives a outlineView:willDisplayCell:forTableColumn:item: message -- but only for an item that is highlighted. I wanted to find a way to update all the visible rows.





_______________________________________________

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

Reply via email to