Revision: 4811
http://skim-app.svn.sourceforge.net/skim-app/?rev=4811&view=rev
Author: hofman
Date: 2008-10-17 16:38:04 +0000 (Fri, 17 Oct 2008)
Log Message:
-----------
only allow changing font color on Leopard
Modified Paths:
--------------
trunk/SKPreferenceController.m
Modified: trunk/SKPreferenceController.m
===================================================================
--- trunk/SKPreferenceController.m 2008-10-17 16:17:30 UTC (rev 4810)
+++ trunk/SKPreferenceController.m 2008-10-17 16:38:04 UTC (rev 4811)
@@ -153,9 +153,11 @@
[freehandLineWell bind:SKLineWellDashPatternKey toObject:sudc
withKeyPath:VALUES_KEY_PATH(SKInkNoteDashPatternKey) options:nil];
[freehandLineWell setDisplayStyle:SKLineWellDisplayStyleSimpleLine];
- NSDictionary *options = [NSDictionary
dictionaryWithObjectsAndKeys:NSUnarchiveFromDataTransformerName,
NSValueTransformerNameBindingOption, nil];
- [textNoteFontWell setHasTextColor:YES];
- [textNoteFontWell bind:SKFontWellTextColorKey toObject:sudc
withKeyPath:VALUES_KEY_PATH(SKFreeTextNoteFontColorKey) options:options];
+ if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_4) {
+ NSDictionary *options = [NSDictionary
dictionaryWithObjectsAndKeys:NSUnarchiveFromDataTransformerName,
NSValueTransformerNameBindingOption, nil];
+ [textNoteFontWell setHasTextColor:YES];
+ [textNoteFontWell bind:SKFontWellTextColorKey toObject:sudc
withKeyPath:VALUES_KEY_PATH(SKFreeTextNoteFontColorKey) options:options];
+ }
}
- (void)windowDidResignMain:(NSNotification *)notification {
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