during inter-document drags of app objects, i’d like to resize the drag image 
to the mag (zoom) of an entered document.
this was easily accomplished in carbon. when i ported from carbon [in 2011] i 
tried what i considered obvious, e.g.

- (NSDragOperation)draggingEntered:(id < NSDraggingInfo >)sender {
        NSImage* img=  [sender draggedImage];
        NSSize sz;  // suitably initialized, of course

        [img setSize:sz];
        [img recache];
}

i was surprised when this did not work & reported it. i just noticed, 
engineering quietly closed the report [may 2013] w/ the suggestion that i 
investigate
enumerateDraggingItemsWithOptions: i’ve just had a look & this seems like very 
great bother to do something previously obtained w/ two lines of code.

does anyone have a workaround?


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to