• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drag a JPEG from Finder to Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


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

  • Prev by Date: Re: Drag a JPEG from Finder to Cocoa
  • Next by Date: Re: Dare I fear the 10.1 upgrade?
  • Previous by thread: Re: Drag a JPEG from Finder to Cocoa
  • Next by thread: Re: "static" typing (Learning Cocoa Chapter 13)
  • Index(es):
    • Date
    • Thread