93 |
|
|
94 |
[ws getInfoForFile: fullPath application: &defApp type: &t]; |
[ws getInfoForFile: fullPath application: &defApp type: &t]; |
95 |
ASSIGN (type, t); |
ASSIGN (type, t); |
96 |
isPakage = [gw isPakageAtPath: fullPath]; |
isPakage = [GWLib isPakageAtPath: fullPath]; |
97 |
|
|
98 |
} else { |
} else { |
99 |
fullPath = nil; |
fullPath = nil; |
105 |
} |
} |
106 |
|
|
107 |
if (singlepath == YES) { |
if (singlepath == YES) { |
108 |
ASSIGN (icon, [gw iconForFile: fullPath ofType: type]); |
ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]); |
109 |
} else { |
} else { |
110 |
ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]); |
ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]); |
111 |
} |
} |
187 |
} |
} |
188 |
[ws getInfoForFile: fullPath application: &defApp type: &t]; |
[ws getInfoForFile: fullPath application: &defApp type: &t]; |
189 |
ASSIGN (type, t); |
ASSIGN (type, t); |
190 |
isPakage = [gw isPakageAtPath: fullPath]; |
isPakage = [GWLib isPakageAtPath: fullPath]; |
191 |
} else { |
} else { |
192 |
TEST_RELEASE (fullPath); |
TEST_RELEASE (fullPath); |
193 |
fullPath = nil; |
fullPath = nil; |
199 |
} |
} |
200 |
|
|
201 |
if (singlepath == YES) { |
if (singlepath == YES) { |
202 |
ASSIGN (icon, [gw iconForFile: fullPath ofType: type]); |
ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]); |
203 |
} else { |
} else { |
204 |
ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]); |
ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]); |
205 |
} |
} |
279 |
- (void)renewIcon |
- (void)renewIcon |
280 |
{ |
{ |
281 |
if (singlepath == YES) { |
if (singlepath == YES) { |
282 |
ASSIGN (icon, [gw iconForFile: fullPath ofType: type]); |
ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]); |
283 |
} else { |
} else { |
284 |
ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]); |
ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]); |
285 |
} |
} |
558 |
if ([selection count] > 1) { |
if ([selection count] > 1) { |
559 |
dragIcon = [NSImage imageNamed: @"MultipleSelection.tiff"]; |
dragIcon = [NSImage imageNamed: @"MultipleSelection.tiff"]; |
560 |
} else { |
} else { |
561 |
dragIcon = [gw iconForFile: fullPath ofType: type]; |
dragIcon = [GWLib iconForFile: fullPath ofType: type]; |
562 |
} |
} |
563 |
} else { |
} else { |
564 |
dragIcon = [NSImage imageNamed: @"MultipleSelection.tiff"]; |
dragIcon = [NSImage imageNamed: @"MultipleSelection.tiff"]; |
726 |
if(isDragTarget == YES) { |
if(isDragTarget == YES) { |
727 |
isDragTarget = NO; |
isDragTarget = NO; |
728 |
if (onSelf == NO) { |
if (onSelf == NO) { |
729 |
ASSIGN (icon, [gw iconForFile: fullPath ofType: type]); |
ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]); |
730 |
[self setNeedsDisplay: YES]; |
[self setNeedsDisplay: YES]; |
731 |
} |
} |
732 |
onSelf = NO; |
onSelf = NO; |
759 |
return; |
return; |
760 |
} |
} |
761 |
|
|
762 |
ASSIGN (icon, [gw iconForFile: fullPath ofType: type]); |
ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]); |
763 |
[self setNeedsDisplay: YES]; |
[self setNeedsDisplay: YES]; |
764 |
|
|
765 |
sourceDragMask = [sender draggingSourceOperationMask]; |
sourceDragMask = [sender draggingSourceOperationMask]; |