Revision: 5606
http://skim-app.svn.sourceforge.net/skim-app/?rev=5606&view=rev
Author: hofman
Date: 2009-08-31 15:18:39 +0000 (Mon, 31 Aug 2009)
Log Message:
-----------
observe default changes to shouldAntiAlias and greekingThreshold in snapshot
controller
Modified Paths:
--------------
trunk/SKSnapshotWindowController.m
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2009-08-31 15:16:37 UTC (rev 5605)
+++ trunk/SKSnapshotWindowController.m 2009-08-31 15:18:39 UTC (rev 5606)
@@ -98,7 +98,7 @@
BOOL keepOnTop = [[NSUserDefaults standardUserDefaults]
boolForKey:SKSnapshotsOnTopKey];
[[self window] setLevel:keepOnTop || forceOnTop ? NSFloatingWindowLevel :
NSNormalWindowLevel];
[[self window] setHidesOnDeactivate:keepOnTop || forceOnTop];
- [[NSUserDefaultsController sharedUserDefaultsController] addObserver:self
forKey:SKSnapshotsOnTopKey context:&SKSnaphotWindowDefaultsObservationContext];
+ [[NSUserDefaultsController sharedUserDefaultsController] addObserver:self
forKeys:[NSArray arrayWithObjects:SKSnapshotsOnTopKey, SKShouldAntiAliasKey,
SKGreekingThresholdKey, nil]
context:&SKSnaphotWindowDefaultsObservationContext];
// the window is initialially exposed. The windowDidExpose notification is
useless, it has nothing to do with showing the window
[self setHasWindow:YES];
}
@@ -170,7 +170,7 @@
}
- (void)windowWillClose:(NSNotification *)notification {
- [[NSUserDefaultsController sharedUserDefaultsController]
removeObserver:self forKey:SKSnapshotsOnTopKey];
+ [[NSUserDefaultsController sharedUserDefaultsController]
removeObserver:self forKeys:[NSArray arrayWithObjects:SKSnapshotsOnTopKey,
SKShouldAntiAliasKey, SKGreekingThresholdKey, nil]];
if (miniaturizing == NO && [[self delegate]
respondsToSelector:@selector(snapshotControllerWindowWillClose:)])
[[self delegate] snapshotControllerWindowWillClose:self];
if ([[self window] isKeyWindow])
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit