• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[NSTableView] Drag and Drop issues with NSButton in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Follow-Ups:
    • Re: [NSTableView] Drag and Drop issues with NSButton in Leopard
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: Adding PDFPage to PDFDocument crashes
  • Next by Date: Re: [NSTableView] Drag and Drop issues with NSButton in Leopard
  • Previous by thread: Re: [NSCursor] White Arrow?
  • Next by thread: Re: [NSTableView] Drag and Drop issues with NSButton in Leopard
  • Index(es):
    • Date
    • Thread