On Sep 18, 2017, at 14:35 , Nick <eveningn...@gmail.com> 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 (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