Re: Double click action for NSImageView
Re: Double click action for NSImageView
- Subject: Re: Double click action for NSImageView
- From: Brian Ganninger <email@hidden>
- Date: Sun, 11 Mar 2007 21:59:59 -0500
To add double-click support to an NSImageView you need your own
subclass (and change the image view[s]'s class in IB.) You'll
override the mouseUp: and/or mouseDown: methods and check the event's
click count.
- brian 'bgannin' ganninger
On Mar 11, 2007, at 2:11 PM, Allan Rentcome wrote:
Hi all:
My application shows a small image on my user interface
representing the image of a product. I am displaying the image
using NSImageView. Previously I was displaying the image in a cell
of my NSTableView and allowed the user to change the image by
double clicking on the cell. I handled this by setting a selector
in the setDoubleAction method of NSTableView. I would like to be
able to have a similar double click action when somebody double
clicks on my NSImageView.
How would I best handle a double click event on an NSImageView?
Thanks
Allan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40mac.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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