/[gnustep]/gnustep/usr-apps/gworkspace/ContentViewers/FolderViewer/FolderViewer.m
ViewVC logotype

Diff of /gnustep/usr-apps/gworkspace/ContentViewers/FolderViewer/FolderViewer.m

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

revision 1.2 by esersale, Mon Aug 25 17:19:13 2003 UTC revision 1.3 by esersale, Tue Sep 30 15:38:04 2003 UTC
# Line 59  Line 59 
59  {  {
60          self = [super init];          self = [super init];
61          if(self) {          if(self) {
     #ifdef GNUSTEP  
                   Class gwclass = [[NSBundle mainBundle] principalClass];  
     #else  
                   Class gwclass = [[NSBundle mainBundle] classNamed: @"GWorkspace"];  
     #endif  
       
                 gworkspace = (id<GWProtocol>)[gwclass gworkspace];  
   
62                  panel = (id<InspectorsProtocol>)apanel;                  panel = (id<InspectorsProtocol>)apanel;
63                  ws = [NSWorkspace sharedWorkspace];                  ws = [NSWorkspace sharedWorkspace];
64                  [self setFrame: frame];                  [self setFrame: frame];
# Line 119  Line 111 
111    ASSIGN (myPath, path);        ASSIGN (myPath, path);    
112    writable = [[NSFileManager defaultManager] isWritableFileAtPath: myPath];    writable = [[NSFileManager defaultManager] isWritableFileAtPath: myPath];
113        
114          oldSortType = [gworkspace sortTypeForDirectoryAtPath: path];          oldSortType = [GWLib sortTypeForDirectoryAtPath: path];
115          newSortType = oldSortType;            newSortType = oldSortType;  
116    
117          if (matrix != nil) {          if (matrix != nil) {
# Line 200  Line 192 
192                    
193          if ([fileType isEqual: NSFilesystemFileType]          if ([fileType isEqual: NSFilesystemFileType]
194                                                          || [fileType isEqual: NSDirectoryFileType]) {                                                          || [fileType isEqual: NSDirectoryFileType]) {
195                  if ([gworkspace isPakageAtPath: path] == NO) {                  if ([GWLib isPakageAtPath: path] == NO) {
196                          return YES;                          return YES;
197                  }                  }
198    }    }
# Line 231  Line 223 
223                  return;                  return;
224          }          }
225          oldSortType = newSortType;          oldSortType = newSortType;
226    [gworkspace setSortType: newSortType forDirectoryAtPath: myPath];    [GWLib setSortType: newSortType forDirectoryAtPath: myPath];
227          [buttCancel setEnabled: NO];          [buttCancel setEnabled: NO];
228          [buttOk setEnabled: NO];                  [buttOk setEnabled: NO];        
229  }  }

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