How to make NSImageView respond like NSButton?
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.