• 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: Steve Cronin <email@hidden>
  • Date: Mon, 6 Mar 2006 16:29:51 -0600

Roger that.   Done very early on in this madness .
awake fires as expected...

Thanks for the thought!


On Mar 6, 2006, at 1:44 PM, Matt Neuburg wrote:

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
References: 
 >Re: Subclassed tableView no longer responding to draggingEntered (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Help with custom NSCell and Bindings in Table View
  • Next by Date: Re: Parsing a packet Async Socket
  • Previous by thread: Re: Subclassed tableView no longer responding to draggingEntered
  • Next by thread: Re: Issues with NSTextView and undoing attributes - Solved (I think)
  • Index(es):
    • Date
    • Thread