• 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
Dragging files and folders into NSView subclasses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dragging files and folders into NSView subclasses


  • Subject: Dragging files and folders into NSView subclasses
  • From: Michael Watson <email@hidden>
  • Date: Fri, 20 Oct 2006 18:43:03 -0400

I have an NSView subclass that contains some NSTextFields. My intent is to be able to drag a file or folder from the Finder anywhere onto the NSView subclass and fill in the text fields with various pieces of info about the file. The last thing to do is actually implement the drag-and-drop functionality.

Just about every example and doc I've seen talks about images. When one doesn't, I still seem to be missing something really important, because nothing I've tried so far has resulted in being able to drop items from the Finder and get paths. I can't even get any of the dragging methods to trigger so I can NSLog() checkpoints to find my way around.

Does anyone have suggestions for how to approach this? For some reason, the drag and drop model in Mac OS X isn't clicking in my head.


-- michael watson _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Dragging files and folders into NSView subclasses
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Over-released Paragraph Style - Driving Me NUTS!
  • Next by Date: Re: Dragging files and folders into NSView subclasses
  • Previous by thread: How to limit expansion in NSOutlineView
  • Next by thread: Re: Dragging files and folders into NSView subclasses
  • Index(es):
    • Date
    • Thread