I've been trying to get it to draw properly for left/right facing tabs and I've run into some trouble using the code above with minor/unimportant mods...
According to the NSBrowserCell docs:
"[the image is] vertically centered on the left edge of the browser cell"
However, when it's drawn vertically (left-facing: bottom to top, right-facing: top to bottom) this isn't holding true.
For left-facing it's putting the icon off to the right -- not "vertically centered" but it is on the "left edge". For right-facing it's putting the icon off the top -- "vertically centered" but not on the "left edge".
I hope that makes sense to someone. It only "sort of" makes sense to me!
Here's some crappy screenshots to make it clearer..
Is this a bug in NSBrowserCell or am I asking too much of it? Should I give up and manage 2 cells instead of trying to get the NSBrowserCell to do it all?
As soon as I get this all working properly I hope to make it a palette for easy use. Anyone have links/info on doing that? Maybe I can get a jump on that..