Re: Changing NSTextFieldCells' editing appearance?
Re: Changing NSTextFieldCells' editing appearance?
- Subject: Re: Changing NSTextFieldCells' editing appearance?
- From: Negm-Awad Amin <email@hidden>
- Date: Mon, 18 Aug 2008 17:20:58 +0200
Am Mo,18.08.2008 um 17:00 schrieb Tim Andersson:
18 aug 2008 kl. 10.15 skrev Negm-Awad Amin:
No, I speak english badly enough to misunderstand this. :-)
I'm sorry if I made it sound like a "insult" - That wasn't my
intention.
No, my fault.
The behaviour of an NSTextField depends on the behaviour of an
NSTextFieldCell. Most of the behaviour of an NSTextField is done by
an NSTextFieldCell. So it is a little bit strange to ask, whether a
cell should behave as its control.
Probably you can clearify this:
- Do you use an NSTextFieldCell without its NSTextField?
- Which specific behaviour the control did fail using the cell?
Cheers,
Amin
I'm using the NSTextFieldCell in a NSTableView.
When using a NSTextField without a border and focus ring, the only
thing that happens when you start editing the field is that the text
is highlighted.
When I edit my NSTextFieldCell (Without border and focus ring) in
my NSTableView, the background goes black and a white border is
shown around it, as the following picture shows: http://img143.imageshack.us/img143/5513/bild2su2.png
I hope that clarifies what I'm trying to do. :)
Cheers,
Tim Andersson
Yes, it did. Probably the table view will set some attributes from its
own state instead of respecting your cell. For example a table view
has a background and the cell has.
I never had that problem, but to solve this, you maybe should
overwrite -editColumn:row:withEvent:select: (NSTableView) and debug,
what is going on. Maybe you can set some attributes before the editing
starts.
Cheers,
Amin Negm-Awad
email@hidden
_______________________________________________
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