• 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: NSOutlineView & NSTextView style/formatting questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Question Mark
      • From: Rosyna <email@hidden>
  • Prev by Date: Re: Cocoa AppleScript: selection, inserting?
  • Next by Date: Question Mark
  • Previous by thread: Re: NSOutlineView & NSTextView style/formatting questions
  • Next by thread: Question Mark
  • Index(es):
    • Date
    • Thread