On 平成 17/02/26, at 9:49, Nick Zitzmann wrote:
On Feb 26, 2005, at 10:43 AM, アンドレ(Andre) wrote:
I'm pretty sure your gonna need to do something at the cell/fieldeditor level.
You might try by re-formating the default cell of a table column (specifically its focus ring setting)
using cellForRow method I believe...
I already disabled the cell's focus ring and I'm using a custom field editor. When I create an NSMatrix of non-bezeled NSTextFieldCells, the text field cells don't appear to have any black border when I put the panel into the background. That's why I figured it might be the table view that's doing this... But maybe there's something else I'm missing.
Thats interesting because I too replaced the cells in my custom NSTableView and didn't get the black-outline... of course I did override their drawing methods as well....
Though that shouldn't do much because I still call super...
Have you tried explicitly setting the cell itself? It's settings I mean.
Here's what I do in -dataCellForRow:
id theCell = [super dataCellForRow:row];
[theCell setAllowsEditingTextAttributes:YES]; [theCell setWraps:YES];
[theCell setMenu:[[NSFontManager sharedFontManager] fontMenu:YES]];
//[theCell setShowsFirstResponder:YES]; (YOU MIGHT WANNA TRY NO HERE)
[theCell setScrollable:YES];
[theCell setImportsGraphics:YES];
[theCell setDrawsBackground:NO];
Not sure that would help you but...
There might be other settings to try, but what your really trying to do is edit the behavior of the