Re: Subclassed tableView no longer responding to draggingEntered
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