> I think I may have got this to work, so here goes:
> 
> The data cell for the table column displaying the hyperlink is now a custom 
> NSTextFieldCell with the following implementation over-ridden:
> 
> - (NSUInteger)hitTestForEvent: (NSEvent *)event
>                                           inRect: (NSRect)cellFrame
>                                           ofView: (NSView *)controlView
> {


Using hitTestForEvent: isn't a good place to do this. It will be called 
multiple times, and possibly not when you expect it to be (ie: not just for 
NSLeftMouseDown).

You still probably want to return NSCellHitTrackableArea when the user hits a 
link, but do the actual URL opening in trackMouse:inRect:ofView:untilMouseUp:

-corbin



_______________________________________________

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 arch...@mail-archive.com

Reply via email to