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: 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