Subclassed tableView no longer responding to draggingEntered
Subclassed tableView no longer responding to draggingEntered
- Subject: Subclassed tableView no longer responding to draggingEntered
- From: Steve Cronin <email@hidden>
- Date: Sun, 5 Mar 2006 23:59:32 -0600
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
_______________________________________________
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