Create NStableview at run time

Discussion in 'Mac Programming' started by Monaj, Jun 2, 2009.

  1. macrumors regular

    Joined:
    May 24, 2009
    #1
    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
     
  2. macrumors member

    Joined:
    Jun 3, 2009
    #2
    Code:
    NSTableView *tv = [[NSTableView alloc] init];
    [tv setDelegate:self];
    [tv setDataSource:self];
    
     

Share This Page