Revision: 18302
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18302&view=rev
Author: hofman
Date: 2011-12-08 22:50:19 +0000 (Thu, 08 Dec 2011)
Log Message:
-----------
move dragging source operation to correct class
Modified Paths:
--------------
trunk/bibdesk/BDSKAddressTextField.m
trunk/bibdesk/BDSKDragTextField.m
Modified: trunk/bibdesk/BDSKAddressTextField.m
===================================================================
--- trunk/bibdesk/BDSKAddressTextField.m 2011-12-08 22:36:22 UTC (rev
18301)
+++ trunk/bibdesk/BDSKAddressTextField.m 2011-12-08 22:50:19 UTC (rev
18302)
@@ -185,6 +185,11 @@
[super mouseDown:theEvent];
}
+// flag changes during a drag are not forwarded to the application, so we fix
that at the end of the drag
+- (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint
operation:(NSDragOperation)operation{
+ [[NSNotificationCenter defaultCenter]
postNotificationName:BDSKFlagsChangedNotification object:NSApp];
+}
+
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5
- (id <BDSKAddressTextFieldDelegate>)delegate { return (id
<BDSKAddressTextFieldDelegate>)[super delegate]; }
- (void)setDelegate:(id <BDSKAddressTextFieldDelegate>)newDelegate { [super
setDelegate:newDelegate]; }
Modified: trunk/bibdesk/BDSKDragTextField.m
===================================================================
--- trunk/bibdesk/BDSKDragTextField.m 2011-12-08 22:36:22 UTC (rev 18301)
+++ trunk/bibdesk/BDSKDragTextField.m 2011-12-08 22:50:19 UTC (rev 18302)
@@ -80,11 +80,6 @@
return [super setKeyboardFocusRingNeedsDisplayInRect:[self bounds]];
}
-// flag changes during a drag are not forwarded to the application, so we fix
that at the end of the drag
-- (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint
operation:(NSDragOperation)operation{
- [[NSNotificationCenter defaultCenter]
postNotificationName:BDSKFlagsChangedNotification object:NSApp];
-}
-
#pragma mark Delegate
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit