• 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: NSTextFieldCell + Transparent NSTableView = Black Field editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextFieldCell + Transparent NSTableView = Black Field editor


  • Subject: Re: NSTextFieldCell + Transparent NSTableView = Black Field editor
  • From: Markus Spoettl <email@hidden>
  • Date: Wed, 26 May 2010 16:41:17 -0400

On May 26, 2010, at 3:18 PM, Corbin Dunn wrote:
>> I'm hoping I'm just being blind again and the there a solution for this problem? Do I need to supply my own customized field editor via -windowWillReturnFieldEditor:toObject:?
>
> You'll probably have to do that.


Only it doesn't seem to work either, presumably because the field editor's background drawing properties are reset when it's prepared for the cell.

That made me sub-class a NSTextFieldCell and overwrite -setUpFieldEditorAttributes: with slightly better results. I still can't get a transparent field editor. It seems to ignore -setDrawsBackground:NO. When setting the background color to [NSColor clearColor] (or something with alpha != 1.0) it's black again or a blended color with black. But at least it allows me to set the background color to something more sensible so I can keep my transparent table.

Regards
Markus
--
__________________________________________
Markus Spoettl

_______________________________________________

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

References: 
 >NSTextFieldCell + Transparent NSTableView = Black Field editor (From: Markus Spoettl <email@hidden>)
 >Re: NSTextFieldCell + Transparent NSTableView = Black Field editor (From: Corbin Dunn <email@hidden>)

  • Prev by Date: PDFKit cpSelections?
  • Next by Date: Re: subclass overwriting superclass ivar
  • Previous by thread: Re: NSTextFieldCell + Transparent NSTableView = Black Field editor
  • Next by thread: Cannot change IKImageBrowserView group title text color?
  • Index(es):
    • Date
    • Thread