Revision: 4950
http://skim-app.svn.sourceforge.net/skim-app/?rev=4950&view=rev
Author: hofman
Date: 2008-11-12 23:35:08 +0000 (Wed, 12 Nov 2008)
Log Message:
-----------
Set collection behavior for various special windows on leopard
Modified Paths:
--------------
trunk/SKFindController.m
trunk/SKInfoWindowController.m
trunk/SKLineInspector.m
trunk/SKNotesPanelController.m
trunk/SKPDFToolTipWindow.m
trunk/SKPSProgressController.m
trunk/SKRemoteStateWindow.m
Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m 2008-11-12 13:54:45 UTC (rev 4949)
+++ trunk/SKFindController.m 2008-11-12 23:35:08 UTC (rev 4950)
@@ -78,8 +78,9 @@
- (unsigned)retainCount { return UINT_MAX; }
- (void)awakeFromNib {
- if (self == sharedFindController)
- [self setWindowFrameAutosaveName:SKFindPanelFrameAutosaveName];
+ [self setWindowFrameAutosaveName:SKFindPanelFrameAutosaveName];
+ if ([[self window] respondsToSelector:@selector(setCollectionBehavior:)])
+ [[self window]
setCollectionBehavior:NSWindowCollectionBehaviorMoveToActiveSpace];
}
- (void)windowDidBecomeKey:(NSNotification *)notification {
Modified: trunk/SKInfoWindowController.m
===================================================================
--- trunk/SKInfoWindowController.m 2008-11-12 13:54:45 UTC (rev 4949)
+++ trunk/SKInfoWindowController.m 2008-11-12 23:35:08 UTC (rev 4950)
@@ -103,6 +103,9 @@
- (void)windowDidLoad {
[self setWindowFrameAutosaveName:SKInfoWindowFrameAutosaveName];
+ if ([[self window] respondsToSelector:@selector(setCollectionBehavior:)])
+ [[self window]
setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces];
+
[self setInfo:[self infoForDocument:[[[NSApp mainWindow] windowController]
document]]];
[[NSNotificationCenter defaultCenter] addObserver: self selector:
@selector(handleWindowDidBecomeMainNotification:)
Modified: trunk/SKLineInspector.m
===================================================================
--- trunk/SKLineInspector.m 2008-11-12 13:54:45 UTC (rev 4949)
+++ trunk/SKLineInspector.m 2008-11-12 23:35:08 UTC (rev 4950)
@@ -101,6 +101,9 @@
- (void)windowDidLoad {
[self setWindowFrameAutosaveName:SKLineInspectorFrameAutosaveName];
+ if ([[self window] respondsToSelector:@selector(setCollectionBehavior:)])
+ [[self window]
setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces];
+
[lineWell setCanActivate:NO];
[lineWell bind:SKLineWellLineWidthKey toObject:self
withKeyPath:SKLineInspectorLineWidthKey options:nil];
[lineWell bind:SKLineWellStyleKey toObject:self
withKeyPath:SKLineInspectorStyleKey options:nil];
Modified: trunk/SKNotesPanelController.m
===================================================================
--- trunk/SKNotesPanelController.m 2008-11-12 13:54:45 UTC (rev 4949)
+++ trunk/SKNotesPanelController.m 2008-11-12 23:35:08 UTC (rev 4950)
@@ -76,6 +76,9 @@
- (void)windowDidLoad {
[self setWindowFrameAutosaveName:SKNotesPanelFrameAutosaveName];
+
+ if ([[self window] respondsToSelector:@selector(setCollectionBehavior:)])
+ [[self window]
setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces];
}
- (IBAction)addNote:(id)sender {
Modified: trunk/SKPDFToolTipWindow.m
===================================================================
--- trunk/SKPDFToolTipWindow.m 2008-11-12 13:54:45 UTC (rev 4949)
+++ trunk/SKPDFToolTipWindow.m 2008-11-12 23:35:08 UTC (rev 4950)
@@ -85,6 +85,9 @@
[self setBackgroundColor:[NSColor whiteColor]];
[self setHasShadow:YES];
[self setLevel:NSStatusWindowLevel];
+ if ([self respondsToSelector:@selector(setCollectionBehavior:)])
+ [self
setCollectionBehavior:NSWindowCollectionBehaviorMoveToActiveSpace];
+
NSImageView *imageView = [[NSImageView alloc] init];
[imageView setImageFrameStyle:NSImageFrameNone];
Modified: trunk/SKPSProgressController.m
===================================================================
--- trunk/SKPSProgressController.m 2008-11-12 13:54:45 UTC (rev 4949)
+++ trunk/SKPSProgressController.m 2008-11-12 23:35:08 UTC (rev 4950)
@@ -122,6 +122,8 @@
- (void)awakeFromNib
{
+ if ([[self window] respondsToSelector:@selector(setCollectionBehavior:)])
+ [[self window]
setCollectionBehavior:NSWindowCollectionBehaviorMoveToActiveSpace];
[progressBar setUsesThreadedAnimation:YES];
[self setButtonTitle:NSLocalizedString(@"Cancel", @"Button title")
action:@selector(cancel:)];
[[self window] setTitle:[NSString
stringWithFormat:NSLocalizedString(@"Converting %@", @"PS conversion progress
message"), [[NSDocumentController sharedDocumentController]
displayNameForType:[self fileType]]]];
Modified: trunk/SKRemoteStateWindow.m
===================================================================
--- trunk/SKRemoteStateWindow.m 2008-11-12 13:54:45 UTC (rev 4949)
+++ trunk/SKRemoteStateWindow.m 2008-11-12 23:35:08 UTC (rev 4950)
@@ -75,6 +75,8 @@
[self setDisplaysWhenScreenProfileChanges:NO];
[self setLevel:NSStatusWindowLevel];
[self setContentView:[[[SKRemoteStateView alloc] init]
autorelease]];
+ if ([self respondsToSelector:@selector(setCollectionBehavior:)])
+ [self
setCollectionBehavior:NSWindowCollectionBehaviorMoveToActiveSpace];
}
}
return sharedRemoteStateWindow;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit