Re: NSOutlineView & NSTextView style/formatting questions
Re: NSOutlineView & NSTextView style/formatting questions
- Subject: Re: NSOutlineView & NSTextView style/formatting questions
- From: Brian Webster <email@hidden>
- Date: Fri, 12 Oct 2001 20:25:19 -0500
On Friday, October 12, 2001, at 04:51 PM, cocoa-dev-
email@hidden wrote:
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.
Try [myTableView setIntercellSpacing:NSZeroSize].
Is there a defined way to have text and images in a cell? The default,
NSTextFieldCell doesn't seem to do what I want.
You could probably use an NSButtonCell, which supports having
both an image and text in the same cell.
Finally, how can I draw my own column separators
What exactly do you mean?
how can I set up
context-menus for the outline view as a whole?
If you have the same contextual menu regardless of where the
click happens, you can just use [myOutlineView setMenu:aMenu],
and a control-click should pop up the menu automatically. Or,
even easier, you can create a menu in IB (drag one from the menu
palette to the nib window) and hook it up to the menu outlet of
your outline view (control-drag from the outline view to the
menu and select the menu outlet in the inspector). You can also
set individual menus for each cell, but that gets a little more
complicated.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster