Revision: 15161
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15161&view=rev
Author: hofman
Date: 2009-04-22 23:49:38 +0000 (Wed, 22 Apr 2009)
Log Message:
-----------
change fileview drag validation methods
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
trunk/bibdesk/BibDocument_DataSource.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2009-04-22 23:49:13 UTC (rev 15160)
+++ trunk/bibdesk/BDSKEditor.m 2009-04-22 23:49:38 UTC (rev 15161)
@@ -1622,7 +1622,7 @@
return [[NSWorkspace sharedWorkspace] openLinkedURL:aURL] == NO;
}
-- (NSDragOperation)fileView:(FVFileView *)aFileView validateDrop:(id
<NSDraggingInfo>)info draggedURLs:(NSArray *)draggedURLs
proposedIndex:(NSUInteger)anIndex
proposedDropOperation:(FVDropOperation)dropOperation
proposedDragOperation:(NSDragOperation)dragOperation {
+- (NSDragOperation)fileView:(FVFileView *)aFileView validateDrop:(id
<NSDraggingInfo>)info proposedIndex:(NSUInteger)anIndex
proposedDropOperation:(FVDropOperation)dropOperation
proposedDragOperation:(NSDragOperation)dragOperation {
NSDragOperation dragOp = dragOperation;
if ([[info draggingSource] isEqual:fileView] && dropOperation == FVDropOn
&& dragOperation != NSDragOperationCopy) {
// redirect local drop on icon and drop on view
Modified: trunk/bibdesk/BibDocument_DataSource.m
===================================================================
--- trunk/bibdesk/BibDocument_DataSource.m 2009-04-22 23:49:13 UTC (rev
15160)
+++ trunk/bibdesk/BibDocument_DataSource.m 2009-04-22 23:49:38 UTC (rev
15161)
@@ -1929,7 +1929,7 @@
return YES;
}
-- (NSDragOperation)fileView:(FVFileView *)aFileView validateDrop:(id
<NSDraggingInfo>)info draggedURLs:(NSArray *)draggedURLs
proposedIndex:(NSUInteger)anIndex
proposedDropOperation:(FVDropOperation)dropOperation
proposedDragOperation:(NSDragOperation)dragOperation {
+- (NSDragOperation)fileView:(FVFileView *)aFileView validateDrop:(id
<NSDraggingInfo>)info proposedIndex:(NSUInteger)anIndex
proposedDropOperation:(FVDropOperation)dropOperation
proposedDragOperation:(NSDragOperation)dragOperation {
BibItem *publication = nil;
if ([self isDisplayingFileContentSearch] == NO && [self
hasExternalGroupsSelected] == NO) {
NSArray *selPubs = [self selectedPublications];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit