Keyboard focus indicator line style
Keyboard focus indicator line style
- Subject: Keyboard focus indicator line style
- From: Dragan Milić <email@hidden>
- Date: Fri, 23 Dec 2005 19:17:15 +0100
Hi everybody.
I've created subclass of NSBrowser class that enables easy editing of
its rows, just like in Finder's column view. For that reason, at
appropriate time I send -
selectWithFrame:inView:editor:delegate:start:length: and -
editWithFrame:inView:editor:delegate:event: to NSBrowserCell instance
that is about to be edited. But I can't make the cell draw it's
keyboard focus ring while editing (like, for example, NSTableView
does when sent -editColumn:row:withEvent:select:). I tried sending -
setFocusRingType:NSFocusRingTypeDefault to both NSBrowserCell
instance and NSTextView instance passed as editor in above mentioned
methods, but without success.
Can someone point to me how to make cell draw its keyboard focus ring
while editing? If not, then how can I draw a line that looks exactly
as keyboard focus ring line? I know that I should set its colour to
[NSColor keyboardFocusIndicatorColor], but I need to achieve the same
effect of blurriness as well. That way I can manually draw focus ring
of the cell being edited.
Thanx.
Regards,
Milke
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden