Best Control for Catching a Mouse Click?
Best Control for Catching a Mouse Click?
- Subject: Best Control for Catching a Mouse Click?
- From: Dave <email@hidden>
- Date: Mon, 07 Dec 2015 16:32:29 +0000
Hi All,
I have a view that is made up for a Text View and a Small Icon like so:
NSView
NSImageView
NSTextField
If the User Clicks anywhere inside the base NSView, I’d like a Perform Click IBAction to be sent to the connected class (The View Controller in this case). In the past, on iOS i’ve done this by using a transparent UIButton that has the same Frame Rect as the base NSView. When I tried to do with the same with an NSButton, I find that I can’t change the height in IB?
On the Mac what is the best control to use to do this?
All the Best
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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