I've just downloaded the frameworks and sample application and am
trying to display a table now.
So far I added a CPCollectionView to my window and am now trying to
add an item prototype:
CPCollectionViewItem itemPrototype = [[CPCollectionViewItem alloc] init];
[itemPrototype setView:[[MyView alloc] init]];
[tableView setItemPrototype:itemPrototype];
tableView is my CPCollectionView and MyView a subclass of CPView.
At the moment I get an "Uncaught SyntaxError: Unexpected Identifier
http://localhost/MyApp/Frameworks/Objective-J/Objective-J.js (line
1213)" when I get to the line where I'm trying to create the
CPCollectionViewItem.
What am I doing wrong?
Thomas
CPCollectionViewItem itemPrototype =
Should be
var itemPrototype =
Sent from my iPhone.
On Sep 4, 2008, at 6:50 PM, "Thomas Mueller" <thomasm...@googlemail.com
I'm wondering, though, whether this is the right approach if I want to
display a table with multiple columns. I guess I could display
multiple data items in the CPCollectionViewItem's view, but then I
still wouldn't have column headers and it wouldn't be possible to
resize the columns, for instance.
Looking at the API I'm afraid there is no support for tables yet. Am I right?
If tables are not yet supported, is somebody already working on this?
Otherwise I might have a go at it, though I'm afraid that might be a
bit over my head :-)
Regards,
Thomas
2008/9/5 Ross Boucher <rbou...@gmail.com>:
We don't have CPTableView yet, but some of the beginnings of the code
is there. I'll be working on this hopefully beginning next week, but
if you'd like to help out let me know.
-Ross