Dragging files and folders into NSView subclasses
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