DnD for NSTextFields, Drag'n'Drop
DnD for NSTextFields, Drag'n'Drop
- Subject: DnD for NSTextFields, Drag'n'Drop
- From: Alexander Reichstadt <email@hidden>
- Date: Thu, 6 Jun 2002 19:20:37 -0700
Hey there,
once more on the search for some cool snippets on drag-and-drop, I found
this page, since my Japanese is as rusty as my French, I guess it's
still of use to others too and there are few areas I found more
confusing:
http://www.big.or.jp/~crane/cocoa/dragDrop2.html
Anyway, what I am trying to do is allow for an NSTextField to accept
Finder Filedrops and I would actually tend to subclass NSTextField. If
any number of files is dropped on the field the title of the first file
should be filled in. I am a bit confused about the fact that NSTextField
already accepts Textdrops, is there an easier way than subclassing
NSTextField, say, by changing the filenames at some stage to NSString
and move them back onto the pasteboard or something?
Thanks
Alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.