• 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: Ivan Myrvold <email@hidden>
  • Date: Sun, 30 Sep 2001 15:05:17 +0400

To answer myself, I think I made this problem bigger than it really is. From what I have been reading of the documentation, I just have to have an NSImageView in my window, which I can drag a picture to from Finder. It will magically be shown in the NSImageView, without me having to do anything special in the code.

OK, I have to try this out when I come home (where my development machine is), sounds almost too good to be true.

So what is all this about NSDraggingDestination and NSDraggingInfo then? It looks like I can forget about that for now, at least.

Ivan

On lxrdag, september 29, 2001, at 01:54 , Ivan Myrvold wrote:

I want the users of my program to drag images from Finder into a view on my Cocoa application, and have the image to stay in the view. I have not seen any examples of this anywhere, and would be grateful for any code example from anyone who have done this. But as I understand it from Apples documentation, I must implement the NSDraggingDestination protocol.

Ivan
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: Drag a JPEG from Finder to Cocoa
      • From: Andreas Monitzer <email@hidden>
References: 
 >Drag a JPEG from Finder to Cocoa (From: Ivan Myrvold <email@hidden>)

  • Prev by Date: Re: Text over graphics
  • Next by Date: Re: Does cocoa just leak?
  • Previous by thread: Drag a JPEG from Finder to Cocoa
  • Next by thread: Re: Drag a JPEG from Finder to Cocoa
  • Index(es):
    • Date
    • Thread