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 PROTECTED]




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to