Is there a StringGrid in the Cocoa Framework or has anybody implemented one that would be like the one in Delphi?
Asked
Active
Viewed 324 times
1
-
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 Jan 17 '10 at 13:46
-
Here are a few links thanks to Leonardo M. Rame' that explains a stringrid in Delphi. 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 Basically, 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 Jan 17 '10 at 20:18
-
Since Free Pascal access COCOA, it is rising :-) – Marco van de Voort Jan 18 '10 at 11:35
2 Answers
1
From what google gave me I believe you mean simple NSTableView
?

Eimantas
- 48,927
- 17
- 132
- 168
-
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 Jan 17 '10 at 20:27
-
-
1Then it's just NSMatrix populated with NSTextFields. Not sure about the access and persistence though... – Eimantas Jan 17 '10 at 20:40
1
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é
- 298
- 3
- 7