Revision: 17940
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=17940&view=rev
Author: hofman
Date: 2011-06-05 21:39:51 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
AppleScript has yet another way to package a file as a 'bmrk', so allow it
Modified Paths:
--------------
trunk/bibdesk/NSAppleEventDescriptor_BDSKExtensions.m
Modified: trunk/bibdesk/NSAppleEventDescriptor_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSAppleEventDescriptor_BDSKExtensions.m 2011-06-05
12:21:11 UTC (rev 17939)
+++ trunk/bibdesk/NSAppleEventDescriptor_BDSKExtensions.m 2011-06-05
21:39:51 UTC (rev 17940)
@@ -46,7 +46,7 @@
- (NSURL *)fileURLValue {
NSURL *fileURL = nil;
DescType descType = [self descriptorType];
- if (descType == typeFileURL || descType == typeFSRef || descType ==
typeAlias || descType == 'fss ') {
+ if (descType == typeFileURL || descType == typeFSRef || descType ==
typeAlias || descType == 'fss ' || type == 'bmrk') {
NSAppleEventDescriptor *descriptor = descType == typeFileURL ? self :
[self coerceToDescriptorType:typeFileURL];
CFDataRef data = (CFDataRef)[descriptor data];
fileURL = [(id)CFURLCreateWithBytes(NULL, CFDataGetBytePtr(data),
CFDataGetLength(data), kCFStringEncodingUTF8, NULL) autorelease];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit