Focus ring not displaying while editing custom split NSCell
Focus ring not displaying while editing custom split NSCell
- Subject: Focus ring not displaying while editing custom split NSCell
- From: "Brad Willoughby" <email@hidden>
- Date: Thu, 10 May 2007 16:56:33 -0700
I have an NSCell subclass which contains two NSTextFieldCells
side-by-side and is being displayed in an NSOutlineView subclass.
When a user double clicks either the left or right half of the NSCell,
the appropriate NSTextFieldCell is editing by calling
selectWithFrame:inView:editor:delegate:start:length:.
This is working and I can edit either of the two fields in my custom
cell. However there are two display problems:
1) The focus ring does not appear around the NSTextFieldCell being edited.
2) When you edit, the newly typed text appears on top of the existing
text in the NSTextFieldCell
I've searched far and wide for solutions, but keep coming up empty.
The closest I've gotten is to modify drawWithFrame in my NSCell
sublass, but the focus ring is drawn underneath the field editor.
Any help would be appreciated.
Cheers,
Brad
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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