@@ -67,7 +67,6 @@ - (id)init
67
67
id defentry;
68
68
NSString *path;
69
69
id window = nil ;
70
- GWDesktopView *desktopView;
71
70
72
71
fm = [NSFileManager defaultManager ];
73
72
nc = [NSNotificationCenter defaultCenter ];
@@ -150,12 +149,12 @@ - (id)init
150
149
- (void )activateDesktop
151
150
{
152
151
[win activate ];
153
- [[win desktopView ] showMountedVolumes ];
154
- [[win desktopView ] showContentsOfNode: dskNode];
152
+ [desktopView showMountedVolumes ];
153
+ [desktopView showContentsOfNode: dskNode];
155
154
[self addWatcherForPath: [dskNode path ]];
156
155
157
156
if ((hidedock == NO ) && ([dock superview ] == nil )) {
158
- [[win desktopView ] addSubview: dock];
157
+ [desktopView addSubview: dock];
159
158
[dock tile ];
160
159
}
161
160
@@ -210,7 +209,6 @@ - (void)setUsesXBundle:(BOOL)value
210
209
usexbundle = value;
211
210
212
211
if ([self isActive ]) {
213
- GWDesktopView *desktopView = [win desktopView ];
214
212
id window = nil ;
215
213
BOOL changed = NO ;
216
214
@@ -275,7 +273,7 @@ - (BOOL)hasWindow:(id)awindow
275
273
276
274
- (id )desktopView
277
275
{
278
- return [win desktopView ] ;
276
+ return desktopView;
279
277
}
280
278
281
279
- (Dock *)dock
@@ -293,7 +291,7 @@ - (void)setDockPosition:(DockPosition)pos
293
291
dockPosition = pos;
294
292
[dock setPosition: pos];
295
293
[self setReservedFrames ];
296
- [[win desktopView ] dockPositionDidChange ];
294
+ [desktopView dockPositionDidChange ];
297
295
}
298
296
299
297
- (void )setDockActive : (BOOL )value
@@ -302,12 +300,12 @@ - (void)setDockActive:(BOOL)value
302
300
303
301
if (hidedock && [dock superview ]) {
304
302
[dock removeFromSuperview ];
305
- [[win desktopView ] setNeedsDisplayInRect: dockReservedFrame];
303
+ [desktopView setNeedsDisplayInRect: dockReservedFrame];
306
304
307
305
} else if ([dock superview ] == nil ) {
308
- [[win desktopView ] addSubview: dock];
306
+ [desktopView addSubview: dock];
309
307
[dock tile ];
310
- [[win desktopView ] setNeedsDisplayInRect: dockReservedFrame];
308
+ [desktopView setNeedsDisplayInRect: dockReservedFrame];
311
309
}
312
310
}
313
311
@@ -366,7 +364,7 @@ - (NSRect)tshelfActivateFrame
366
364
367
365
- (NSImage *)tabbedShelfBackground
368
366
{
369
- return [[win desktopView ] tshelfBackground ];
367
+ return [desktopView tshelfBackground ];
370
368
}
371
369
372
370
- (void )mouseEnteredTShelfActivateFrame
@@ -381,11 +379,9 @@ - (void)mouseExitedTShelfActiveFrame
381
379
382
380
- (void )deselectAllIcons
383
381
{
384
- GWDesktopView *view = [win desktopView ];
385
-
386
- [view unselectOtherReps: nil ];
387
- [view selectionDidChange ];
388
- [view stopRepNameEditing ];
382
+ [desktopView unselectOtherReps: nil ];
383
+ [desktopView selectionDidChange ];
384
+ [desktopView stopRepNameEditing ];
389
385
}
390
386
391
387
- (void )deselectInSpatialViewers
@@ -565,7 +561,7 @@ - (void)updateDefaults
565
561
[defaults setBool: hidedock forKey: @" hidedock" ];
566
562
567
563
[dock updateDefaults ];
568
- [[win desktopView ] updateDefaults ];
564
+ [desktopView updateDefaults ];
569
565
}
570
566
571
567
- (void )setContextHelp
@@ -597,7 +593,6 @@ - (BOOL)validateItem:(id)menuItem
597
593
{
598
594
if ([self isActive ]) {
599
595
SEL action = [menuItem action ];
600
- GWDesktopView *desktopView = [win desktopView ];
601
596
602
597
if (sel_eq (action, @selector (duplicateFiles: ))
603
598
|| sel_eq (action, @selector (recycleFiles: ))
@@ -650,7 +645,7 @@ - (BOOL)validateItem:(id)menuItem
650
645
651
646
- (void )openSelectionInNewViewer : (BOOL )newv
652
647
{
653
- NSArray *selreps = [[win desktopView ] selectedReps ];
648
+ NSArray *selreps = [desktopView selectedReps ];
654
649
int i;
655
650
656
651
for (i = 0 ; i < [selreps count ]; i++) {
@@ -697,7 +692,7 @@ - (void)openSelectionInNewViewer:(BOOL)newv
697
692
698
693
- (void )openSelectionAsFolder
699
694
{
700
- NSArray *selnodes = [[win desktopView ] selectedNodes ];
695
+ NSArray *selnodes = [desktopView selectedNodes ];
701
696
int i;
702
697
703
698
for (i = 0 ; i < [selnodes count ]; i++) {
@@ -728,14 +723,14 @@ - (void)newFile
728
723
729
724
- (void )duplicateFiles
730
725
{
731
- if ([[[win desktopView ] selectedNodes ] count ]) {
726
+ if ([[desktopView selectedNodes ] count ]) {
732
727
[gworkspace duplicateFiles ];
733
728
}
734
729
}
735
730
736
731
- (void )recycleFiles
737
732
{
738
- if ([[[win desktopView ] selectedNodes ] count ]) {
733
+ if ([[desktopView selectedNodes ] count ]) {
739
734
[gworkspace moveToTrash ];
740
735
}
741
736
}
@@ -747,7 +742,7 @@ - (void)emptyTrash
747
742
748
743
- (void )deleteFiles
749
744
{
750
- if ([[[win desktopView ] selectedNodes ] count ]) {
745
+ if ([[desktopView selectedNodes ] count ]) {
751
746
[gworkspace deleteFiles ];
752
747
}
753
748
}
@@ -771,38 +766,38 @@ - (void)setShownType:(id)sender
771
766
type = FSNInfoNameType;
772
767
}
773
768
774
- [( id <FSNodeRepContainer>)[win desktopView ] setShowType: type];
769
+ [desktopView setShowType: type];
775
770
}
776
771
777
772
- (void )setExtendedShownType: (id )sender
778
773
{
779
- [( id <FSNodeRepContainer>)[win desktopView ] setExtendedShowType: [sender title ]];
774
+ [desktopView setExtendedShowType: [sender title ]];
780
775
}
781
776
782
777
- (void )setIconsSize: (id )sender
783
778
{
784
- [( id <FSNodeRepContainer>)[win desktopView ] setIconSize: [[sender title ] intValue ]];
779
+ [desktopView setIconSize: [[sender title ] intValue ]];
785
780
}
786
781
787
782
- (void )setIconsPosition: (id )sender
788
783
{
789
784
NSString *title = [sender title ];
790
785
791
786
if ([title isEqual: NSLocalizedString(@" Left" , @" " )]) {
792
- [( id <FSNodeRepContainer>)[win desktopView ] setIconPosition: NSImageLeft];
787
+ [desktopView setIconPosition: NSImageLeft];
793
788
} else {
794
- [( id <FSNodeRepContainer>)[win desktopView ] setIconPosition: NSImageAbove];
789
+ [desktopView setIconPosition: NSImageAbove];
795
790
}
796
791
}
797
792
798
793
- (void )setLabelSize: (id )sender
799
794
{
800
- [[win desktopView ] setLabelTextSize: [[sender title ] intValue ]];
795
+ [desktopView setLabelTextSize: [[sender title ] intValue ]];
801
796
}
802
797
803
798
- (void )selectAllInViewer
804
799
{
805
- [[win desktopView ] selectAll ];
800
+ [desktopView selectAll ];
806
801
}
807
802
808
803
- (void )showTerminal
0 commit comments