• 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: NSCell and IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCell and IB


  • Subject: Re: NSCell and IB
  • From: Scott Herz <email@hidden>
  • Date: Mon, 17 Sep 2001 15:33:54 -0700

I'm not quite visualizing this, but you will need to make a single cell that draws all of this. You can only make a matrix/tableview out of cells. NSText and NSImage are views. I would suggest that you subclass NSCell to draw as you like and then use IB to design your NSTableView columns (title, with, etc). Then programmatically set the your subclass to be the data cell of your column.

Scott.

On Monday, September 17, 2001, at 03:14 PM, Robert Goldsmith wrote:

Hi :)

Ok, maybe I'm missing something here but I can't find any way to do the following:

I want a single scrollable column of objects where each object consists of 2 NSText and 1 NSImage object, all with a coloured background - possibly more but this is the minimum. The object should be selectable but the contents of the object need not be. Each object would show a title, an author and a status icon (for instance).

I figured the best way would be either an NSScrollView with an NSMatrix of NSCells in it or a single column NSTableView with a custom NSCell set for the NSTableColumn.

However, I can't work out how to create an NSCell like I need in IB or connect it up in IB. Do I have to do it all programmatically or can IB do it (or lots of it) and how do I go about this?

Thanks

Robert

-- Please note the new email address:
email@hidden
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: NSCell and IB
      • From: Robert Goldsmith <email@hidden>
References: 
 >NSCell and IB (From: Robert Goldsmith <email@hidden>)

  • Prev by Date: Re: Math/Theory Questions about PostScript-style drawing
  • Next by Date: How to add delegate to my application
  • Previous by thread: NSCell and IB
  • Next by thread: Re: NSCell and IB
  • Index(es):
    • Date
    • Thread