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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to