Revision: 11865
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11865&view=rev
Author: amaxwell
Date: 2007-12-11 13:19:30 -0800 (Tue, 11 Dec 2007)
Log Message:
-----------
Use Apple's link detection in editor text views on 10.5 and later.
Modified Paths:
--------------
trunk/bibdesk/BDSKEditorTextView.m
Modified: trunk/bibdesk/BDSKEditorTextView.m
===================================================================
--- trunk/bibdesk/BDSKEditorTextView.m 2007-12-11 20:49:16 UTC (rev 11864)
+++ trunk/bibdesk/BDSKEditorTextView.m 2007-12-11 21:19:30 UTC (rev 11865)
@@ -246,8 +246,14 @@
- (void)doCommonSetup;
{
OBPRECONDITION([self textStorage]);
-
- [[self textStorage] setDelegate:self];
+#if defined(MAC_OS_X_VERSION_10_5) && (MAC_OS_X_VERSION_MAX_ALLOWED >=
MAC_OS_X_VERSION_10_5)
+#warning 10.5: remove URL detection
+#endif
+ // use Apple's link detection on 10.5 and later
+ if (floor(NSAppKitVersionNumber <= NSAppKitVersionNumber10_4))
+ [[self textStorage] setDelegate:self];
+ else
+ [self toggleAutomaticLinkDetection:nil];
[self updateFontFromPreferences];
[OFPreference addObserver:self
selector:@selector(handleFontChangedNotification:) forPreference:[OFPreference
preferenceForKey:BDSKEditorFontNameKey]];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit