[NSTableView] Drag and Drop issues with NSButton in Leopard
[NSTableView] Drag and Drop issues with NSButton in Leopard
- Subject: [NSTableView] Drag and Drop issues with NSButton in Leopard
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 2 Sep 2008 22:59:44 +0200
I have some code that works OK on Tiger but does not on Leopard.
I have a NSTableView with a column whose data cell is a NSButtonCell
subclass.
The NSButtonCell is set to be a checkbox/switchbox.
The subclass implements the following method:
- (BOOL) trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame
ofView:(NSView *)controlView untilMouseUp:(BOOL)flag
{
return YES;
}
in order to prevent clicks to be taken into account.
On Mac OS X 10.4.x, this works perfectly: you can't click the
checkbox to change its value but you can initiate a drag by clicking
on the checkbox.
On Mac OS X 10.5.x, this prevents the click but does not allow the
drag operation to begin.
I've tried to play with the new NSTableViews methods in Leopard to
deal with advanced tracking but this did not help. Either it's a
regression or I'm not doing something correctly (I just hope it's the
second case).
What could be done to make this work on Leopard?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden