On Sat, Apr 11, 2015, at 08:30 AM, Dave wrote:
> 
> I’d like to be able to do the same action that NSButton does on Mouse
> Down on another object. 
> 
> For example:
> 
> Button X                                Button Y
> 
> 
> Mouse down on Button X, causes it to be highlighted, I want this same
> action to occur on Button Y. 
> 
> Does anyone have any idea of the best way of doing this?

I'm not sure I understand what you're asking.

Are you saying you're implementing an NSView subclass, and what it to
react to mouse events the same way that NSButton does?

Can you just use an NSButton instead?

--Kyle Sluder

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to