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]; |
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) { |
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 |
} |
} |
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 |
} |
} |