• 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
Re: Double click action for NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Double click action for NSImageView (From: Allan Rentcome <email@hidden>)

  • Prev by Date: Re: Need help with setNeedsDisplay - Another Update
  • Next by Date: Re: PDFView setDocument: autorelease crash?
  • Previous by thread: Double click action for NSImageView
  • Next by thread: Adding AppleScript support to a Core Data application
  • Index(es):
    • Date
    • Thread