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: Stuart Malin <email@hidden>
- Date: Thu, 26 Feb 2009 21:39:16 -1000
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 (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