Re: NSOutlineView & NSTextView style/formatting questions
Re: NSOutlineView & NSTextView style/formatting questions
- Subject: Re: NSOutlineView & NSTextView style/formatting questions
- From: Dan Wood <email@hidden>
- Date: Fri, 12 Oct 2001 15:21:17 -0700
These aren't "armaturish" questions by any means ... Or if they
are, I'll brave the thorns and give at least one a go....
On Friday, October 12, 2001, at 02:37 PM, Dave Fayram wrote:
Hey folks.
I've been playing with NSTableView and NSOutlineView, and I have a
critical problem. No matter what I do, they look.. well..
unprofessional. Not just the font, but in general the whole thing
looks rather blocky. So I had the following questions:
When I set a table cell for rows to draw in a color, there is a
big white line between the cells. This looks rather clunky, how do
I remove it? Unchecking draws grid in IB doesn't seem to do it.
The grid drawing requires code to turn it off, then on again. So
unless you try hard, you aren't drawing a grid. Try playing with
the "intercellSpacing" of your NSTableView.
Is there a defined way to have text and images in a cell? The
default, NSTextFieldCell doesn't seem to do what I want.
I think you have to make your own cell class (or fudge and use a
button, which knows about text with images) to get the effect you
want. Or you could make it an image cell, and composite the text
over the image yourself.
Finally, how can I draw my own column separators, and I think I've
seen this on the list before, but I guess I'll ask anyways, how
can I set up context-menus for the outline view as a whole?
No idea here...
--
Dan Wood
email@hidden
http://www.karelia.com/
http://www.bikealameda.org/
Mac OS X Developer: Online Resume:
http://www.karelia.com/resume.html