Re: [NSTableview] can't make selected text stay black
Re: [NSTableview] can't make selected text stay black
- Subject: Re: [NSTableview] can't make selected text stay black
- From: Keith Blount <email@hidden>
- Date: Fri, 12 Mar 2010 15:54:07 -0800 (PST)
Hi Corbin,
Many thanks for the clarification, and for providing the official and better way of doing this. Although I will now go through my code an try to do this at the cell level, as obviously I'd much rather my app be future-proofed and avoid using private methods, it's not the ideal "perfect world" solution in my case - that is, it's a lot more work than being able to do it at the table level. My outline view has many columns (which can be shown and hidden by the user), each with different cell types. I have text cells, button cells, popup button cells, image cells and custom cells - all of which will now need subclassing to override -highlightColorWithFrame:. (I will probably make generic subclasses of NSTextCell, NSPopUpButtonCell etc, each with accessors deciding whether or not to return nil from -highlightColorWithFrame:..., and then may my custom cells subclasses of those.) So although the requested method may not be essential, it would save subclassing
every cell type you need to use. :)
Thanks again for providing a way of doing this without resorting to private methods, this is something I've been doing for years without realising.
All the best,
Keith
----- Original Message ----
From: Corbin Dunn <email@hidden>
To: Keith Blount <email@hidden>
Cc: email@hidden; email@hidden
Sent: Fri, March 12, 2010 11:29:08 PM
Subject: Re: [NSTableview] can't make selected text stay black
>
> P.S. I'm hesitant about mentioning private methods here, but I don't think there's another way of doing it - I filed an enhancement request for this method to be made public back in April '06, ID#4521167, so please do the same if you think it would be useful. I'm CC'ing Corbin so he can straighten me out on the private method thing if this is totally the wrong advice, but it works for me. :)
Thank you for logging the bug -- I do realize we could make this better. Currently, there is a way to do it (override highlightColorWithFrame:), so adding the requested method is "nice to have", but not essential.
corbin
_______________________________________________
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