• 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
Alternatives to NSMatrix and NSTable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Alternatives to NSMatrix and NSTable?


  • Subject: Alternatives to NSMatrix and NSTable?
  • From: Colin Howarth <email@hidden>
  • Date: Thu, 25 May 2006 11:17:08 +0200

Hi,

I'm new to Cocoa and still trying things out. I'd like a spreadsheet type display. The columns can be of different widths and the rows of different heights.

NSMatrix would seem to be right, except that all the cells have to be the same size.

NSTable seems to be more suitable for displaying a database (table of records).

So, do I need to create a custom view using NSControl and NSCell ? If so, I'm not getting very far with the NSControl documentation. :-(

a) certain methods (eg. drawCell:) refer to cells "belonging" to an NSControl. How do cells belong to a control? NSCell/setControlView?

b) how does a control know which cells it owns? Does one implement this oneself?

c) sizeToFit: resizes the control to fit its cell. How do I size/ locate the cells? NSCell/setControlSize? How about locating it within the control view?


Is there perhaps some more detailed documentation on all this and/or some example code?


The "Introduction to Control and Cell Programming Topics for Cocoa" doesn't seem to help.


Thanks,

colin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Alternatives to NSMatrix and NSTable?
      • From: Lon Giese <email@hidden>
    • Re: Alternatives to NSMatrix and NSTable?
      • From: Keary Suska <email@hidden>
  • Prev by Date: user-stoppable program
  • Next by Date: Best way to clean HTML str in ObjC
  • Previous by thread: Re: user-stoppable program
  • Next by thread: Re: Alternatives to NSMatrix and NSTable?
  • Index(es):
    • Date
    • Thread