On Mon, Dec 7, 2015, at 10:32 AM, Dave wrote: > 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.
This probably made your app inaccessible with VoiceOver. Please do not use invisible controls for this sort of thing. > 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? Use a different approach that will work on both platforms. Override -hitTest: in a containing view. This will also work well with accessibility. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com