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

Re: Alternatives to NSMatrix and NSTable?


  • Subject: Re: Alternatives to NSMatrix and NSTable?
  • From: Lon Giese <email@hidden>
  • Date: Sun, 28 May 2006 02:35:09 -0700

I was reading about new features in cocoa and saw a thing about how NSTextView can now define display cells or something to that effect... this might be able to give you a spreadsheet effect without too much trouble... Sorry I don't have more info, I forgot where I saw that, maybe someone else knows exactly what I am talking about... Good luck

On May 25, 2006, at 2:17 AM, Colin Howarth wrote:

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:
email@hidden


This email sent to email@hidden


_______________________________________________ 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
References: 
 >Alternatives to NSMatrix and NSTable? (From: Colin Howarth <email@hidden>)

  • Prev by Date: NSOutlineView - Trouble validating edits
  • Next by Date: NSBrowser with custom cells
  • Previous by thread: Re: Alternatives to NSMatrix and NSTable?
  • Next by thread: Best way to clean HTML str in ObjC
  • Index(es):
    • Date
    • Thread