• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disabling NSTableView's big black editing box?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling NSTableView's big black editing box?


  • Subject: Re: Disabling NSTableView's big black editing box?
  • From: アンドレ(Andre) <email@hidden>
  • Date: Sat, 26 Feb 2005 10:33:13 -0800


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
NSKeyFocusView or whatever (forgot the name) private superview...

Nick Zitzmann

<http://www.chronosnet.com/>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • [SOLVED] Re: Disabling NSTableView's big black editing box?
      • From: Nick Zitzmann <email@hidden>
References: 
 >Disabling NSTableView's big black editing box? (From: Nick Zitzmann <email@hidden>)
 >Re: Disabling NSTableView's big black editing box? (From: アンドレ(Andre) <email@hidden>)
 >Re: Disabling NSTableView's big black editing box? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: unicode character for action pull-down
  • Next by Date: Re: unicode character for action pull-down
  • Previous by thread: Re: Disabling NSTableView's big black editing box?
  • Next by thread: [SOLVED] Re: Disabling NSTableView's big black editing box?
  • Index(es):
    • Date
    • Thread