• 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
How to make NSImageView respond like NSButton?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to make NSImageView respond like NSButton?


  • Subject: How to make NSImageView respond like NSButton?
  • From: Poornima Ranganath <email@hidden>
  • Date: Mon, 30 Jun 2003 15:03:56 +0100 (BST)

Hi All:
I have a NSImageView which dispalys a logo,When a
user clicks the logo, i need to launch a website.That
is NSImageView should act like a button. How is this
to be handled? i have made a connection to the
NSImageView and my class through an Action message,
but the action message does not get called.
the Action Msg looks like

-(IBAction) clickImageView:(id) sender.
this does not get called at all. How will i make the
NSImageView call the above Action Method so as to say
make it work like a button?

I read some where in the documentation that i need to
use "sendAction" in "mouseDown", but i am doing
someother stuff in mousedown and don't want to call
the "sendAction" for NSImageView there.
How can my problem be solved?

Thanks for all your precious time.

Rgds,
Poornima.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How to make NSImageView respond like NSButton?
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Not able to trap keyDown event in NSScrollView
  • Next by Date: Re: Writing Files
  • Previous by thread: Not able to trap keyDown event in NSScrollView
  • Next by thread: Re: How to make NSImageView respond like NSButton?
  • Index(es):
    • Date
    • Thread