• 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
DnD for NSTextFields, Drag'n'Drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: DnD for NSTextFields, Drag'n'Drop
      • From: Jesper Nilsson <email@hidden>
  • Prev by Date: Re: [Q] Lookup in pbs of server "RulebookServer" failed
  • Next by Date: Worker threads and UI threads
  • Previous by thread: Accessor Generators
  • Next by thread: Re: DnD for NSTextFields, Drag'n'Drop
  • Index(es):
    • Date
    • Thread