Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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?



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.