/[hegemonie]/hegemonie/ModelViewer/OpenFileControl.m
ViewVC logotype

Diff of /hegemonie/ModelViewer/OpenFileControl.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by ano, Mon Aug 18 10:09:08 2003 UTC revision 1.3 by dam, Wed Aug 20 14:20:15 2003 UTC
# Line 14  Line 14 
14    
15  - (void) _loadFileCfg: (id)sender  - (void) _loadFileCfg: (id)sender
16  {  {
17    NSArray *fileTypes = [NSArray arrayWithObject:@"cfg"];    NSArray *fileTypes = [NSArray arrayWithObject:@"mdl"];
18        
19    NSOpenPanel *oPanel = [NSOpenPanel openPanel];      NSOpenPanel *oPanel = [NSOpenPanel openPanel];  
20    [oPanel setAllowsMultipleSelection: NO];    [oPanel setAllowsMultipleSelection: NO];
# Line 130  Line 130 
130        NSMutableDictionary* dico =  [_modelData objectAtIndex: i];        NSMutableDictionary* dico =  [_modelData objectAtIndex: i];
131    
132        MdlModel* modelTmp = [MdlModel alloc] ;        MdlModel* modelTmp = [MdlModel alloc] ;
133        modelTmp = [modelTmp initWithName: [dico objectForKey: @"1"]    //     modelTmp = [modelTmp initWithName: [dico objectForKey: @"1"]
134                             withTexName: [dico objectForKey: @"2"]  //                         withTexName: [dico objectForKey: @"2"]
135                             withConfigName: [dico objectForKey: @"3"]];  //                         withConfigName: [dico objectForKey: @"3"]];
136    
137          modelTmp = [modelTmp initWithContentsOfFile: [dico objectForKey: @"3"]];
138    
139        NSArray* animTmp = [modelTmp animationsName];        NSArray* animTmp = [modelTmp animationsName];
140        [_modelsAnimations addObject: animTmp];        [_modelsAnimations addObject: animTmp];

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26