View Full Version : Create NStableview at run time

Jun 3, 2009, 12:51 AM
hello all,
i have need 35 table in application. it is difficult for me binding and recognize them at run time.

I think have two way for me.
1. make an array of NSTableView *myTableView[5][7]; and binding it and recognize it easily in coding.(but i can't bind tableview array to tables. In Problem 2 i found the solution of problem 1)
2. other way I think to create table at run time. which resolve my problem.
(but i face problem to create it at run time.)

please help me came out the problem. or please give me the better suggestion for sort out it(becouse a need drag and drop and double click functionality on it).
thanks in advance

Jun 3, 2009, 07:48 PM
NSTableView *tv = [[NSTableView alloc] init];
[tv setDelegate:self];
[tv setDataSource:self];