• 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
Drag n Drop on a NSControl : NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag n Drop on a NSControl : NSTextField?


  • Subject: Drag n Drop on a NSControl : NSTextField?
  • From: "Josh M. Hurd" <email@hidden>
  • Date: Mon, 11 Feb 2002 17:16:54 -0800

I am trying to allow drag n drop on a NSTextField control but am not having any luck. I am using the same method as I did with other controls but with a TextField it does not work.

What I did was subclass NSTextField. Add the needed methods for Drag n Drop, namely:
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
- (unsigned int)draggingEntered:(id <NSDraggingInfo>)sender;
- (BOOL)draggingUpdated:(id <NSDraggingInfo>)sender;

This works for NSTableView and NSBox but not with NSTextField. Anyone know why?

Thanks!

Josh

BadDog Software
http://BadDog.2y.net
email@hidden
_______________________________________________
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.

  • Prev by Date: Re: Basic Games framework in Cocoa...
  • Next by Date: Re: AppleScript Question
  • Previous by thread: making dynamic NSColorView list
  • Next by thread: Re: Drag n Drop on a NSControl : NSTextField?
  • Index(es):
    • Date
    • Thread