Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag a JPEG from Finder to Cocoa



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.


References: 
 >Re: Drag a JPEG from Finder to Cocoa (From: Ivan Myrvold <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.