Revision: 11529
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11529&view=rev
Author: hofman
Date: 2007-11-10 09:04:07 -0800 (Sat, 10 Nov 2007)
Log Message:
-----------
Add files from local file fields only when they're not yet included.
Modified Paths:
--------------
branches/TRY_ARM_FILE_INTERFACE/bibdesk/BibItem.m
Modified: branches/TRY_ARM_FILE_INTERFACE/bibdesk/BibItem.m
===================================================================
--- branches/TRY_ARM_FILE_INTERFACE/bibdesk/BibItem.m 2007-11-10 14:05:37 UTC
(rev 11528)
+++ branches/TRY_ARM_FILE_INTERFACE/bibdesk/BibItem.m 2007-11-10 17:04:07 UTC
(rev 11529)
@@ -2449,7 +2449,7 @@
{
BibItem *self = (BibItem *)context;
NSURL *value = [self localFileURLForField:(id)key];
- if (value) {
+ if (value && [[self valueForKeyPath:@"files.fileURL"]
containsObject:value] == NO) {
// !!! file URLs are always absolute but the init method here always
returns nil, which probably means that we should do the first initialization
with relative paths instead of expending them first
BDSKAliasFile *aFile = [[BDSKAliasFile alloc] initWithURL:value
delegate:self];
if (aFile) {
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit