Re: Inserting a button into another application's toolbar
Re: Inserting a button into another application's toolbar
- Subject: Re: Inserting a button into another application's toolbar
- From: Quincey Morris <email@hidden>
- Date: Mon, 18 Sep 2017 14:57:38 -0700
On Sep 18, 2017, at 14:35 , Nick <email@hidden> wrote:
>
> adding/injecting a toolbar icon with a custom handler code into the main
> window of the application
Isn’t that a massive security violation? Assuming you could get an icon into
the toolbar (NSToolbar), it would need an action method to handle a click on
the icon. If you could inject an action method, a malicious actor could inject
arbitrary code into any app.
You might be able to get *near* your intended approach by using a service:
developer.apple.com/documentation/appkit/core_app/services_functions
_______________________________________________
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