Re: Focus ring not displaying while editing custom split NSCell
Re: Focus ring not displaying while editing custom split NSCell
- Subject: Re: Focus ring not displaying while editing custom split NSCell
- From: "Brad Willoughby" <email@hidden>
- Date: Mon, 14 May 2007 11:59:10 -0700
Since I did not hear any responses to my initial post, I went ahead
and posted a stripped down project and screenshot showing the problem:
http://www.tinyplanetsoftware.com/scratch/nscell-editing-problem.png
http://www.tinyplanetsoftware.com/scratch/CellTester.zip
You can see from the picture that when you edit one of the two
sub-cells, the newly-typed text appears over the placeholder text and
there is no focus ring. Any tips are appreciated.
Cheers,
Brad
On 5/10/07, Brad Willoughby <email@hidden> wrote:
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