• 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
Re: Subclassed tableView no longer responding to draggingEntered
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclassed tableView no longer responding to draggingEntered


  • Subject: Re: Subclassed tableView no longer responding to draggingEntered
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 06 Mar 2006 11:44:48 -0800
  • Thread-topic: Subclassed tableView no longer responding to draggingEntered

On Sun, 5 Mar 2006 23:59:32 -0600, Steve Cronin <email@hidden> said:
>Folks;
>
>I had this working but now it's busted and making me a little nuts...
>
>I now never see anything from the draggingEntered method below.
>
>Are there IB issues that can make the tableView not receive the
>dragEnter?
>
>- (void)awakeFromNib {
>    [self registerForDraggedTypes:[NSArray
>arrayWithObject:myCustomPboardType]];
>}
>
>- (unsigned int)draggingEntered:(id <NSDraggingInfo>)sender {
>    if ([[sender draggingPasteboard] availableTypeFromArray:[NSArray
>arrayWithObject:myCustomPboardType]] != nil) {
>       NSLog(@"Registered DataType - responding with -Private");
>       return NSDragOperationPrivate;
>    } else {
>       NSLog(@"Unregistered DataType");
>       return NSDragOperationNone;
>    }
>}
>
>Thanks for your thoughts!
>Steve

My first move would be to put an NSLog into awakeFromNib to see whether it's
being called. It might well not be (depends on how you've set things up). m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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: Subclassed tableView no longer responding to draggingEntered
      • From: Steve Cronin <email@hidden>
  • Prev by Date: Re: NSArrayController's contentArray and selectedIndexes don't match when sorted
  • Next by Date: Re: retain/release question about Apple docs
  • Previous by thread: Subclassed tableView no longer responding to draggingEntered
  • Next by thread: Re: Subclassed tableView no longer responding to draggingEntered
  • Index(es):
    • Date
    • Thread