Is there a StringGrid in the Cocoa Framework or has anybody implemented one that would be like the one in Delphi?
+1
A:
The number of people who've used Delphi and Cocoa is very small. How about describing this "StringGrid" so we have some idea of what it's supposed to do?
NSResponder
2010-01-17 13:46:53
Here are a few links thanks to Leonardo M. Rame' that explains a stringrid in Delphi.http://delphi.wikia.com/wiki/TStringGrid_Classhttp://hiderin.air-nifty.com/photos/uncategorized/2008/01/04/stringgrid_2.pnghttp://www.asiplease.net/computing/delphi/string_grid_component.htmBasically, it is a simple grid component (like a table or Matrix) that allows one to save string data in its cells. There is no need for a datasource and you can set and access the data with commands like stringgrid1.cells[x,y]. There is a count, noofcolumns, noofrows properties that you can set or access.
earlcenac
2010-01-17 20:18:46
Since Free Pascal access COCOA, it is rising :-)
Marco van de Voort
2010-01-18 11:35:47
No. Not an NSTableView. The stringgrid component in Delphi is not nearly as complicated as an NSTableView. You drag the component on a form and it is a grid like a table or matrix and you can populate its cells with string data. It has count,noofrows,noofcolumns,etc properties that you could set or get. No need for a datasource and for protocols and their complications.
earlcenac
2010-01-17 20:27:47
Then it's just NSMatrix populated with NSTextFields. Not sure about the access and persistence though...
Eimantas
2010-01-17 20:40:18
+1
A:
Here are a couple of links showing the TStringGrid control:
http://delphi.wikia.com/wiki/TStringGrid_Class
http://hiderin.air-nifty.com/photos/uncategorized/2008/01/04/stringgrid_2.png
http://www.asiplease.net/computing/delphi/string_grid_component.htm
P.S.: This answer should appear as a comment for NSResponder question, but, since I can't find the "Add Comments" link, I added this comment as an Answer.
Leonardo M. Ramé
2010-01-17 14:57:06