• 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
Best Control for Catching a Mouse Click?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Best Control for Catching a Mouse Click?
      • From: Jens Alfke <email@hidden>
    • Re: Best Control for Catching a Mouse Click?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Need Help with Swift
  • Next by Date: Re: Best Control for Catching a Mouse Click?
  • Previous by thread: Re: How to
  • Next by thread: Re: Best Control for Catching a Mouse Click?
  • Index(es):
    • Date
    • Thread