Re: Drag a JPEG from Finder to Cocoa
Re: Drag a JPEG from Finder to Cocoa
- Subject: Re: Drag a JPEG from Finder to Cocoa
- From: Andreas Monitzer <email@hidden>
- Date: Sun, 30 Sep 2001 17:52:12 +0200
On Sunday, September 30, 2001, at 05:42 , Ivan Myrvold wrote:
Tried it out at home. Hmmm, the dragged image just jumps back into Finder,
and no picture is shown. There must be something that I have missed.
file:///System/Library/Frameworks/AppKit.framework/Versions/C/Resources/English.
lproj/Documentation/Reference/ObjC_classic/Classes/NSImageView.html
For an NSControl, NSImageView is quite limited in its ability to respond
to user events: the only thing a user can do is drag in a new image. When
it receives the new image, the NSImageView replaces its old image and
sends its action message to its target. Even this low level of
interactivity can be disabled: you can send the NSImageView the message
setEditable: with an argument of NO.
Maybe you have to send setEditable: with YES (or set it in IB).
andy
--
Description forthcoming.