• 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
Re: Inserting a button into another application's toolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Inserting a button into another application's toolbar (From: Nick <email@hidden>)

  • Prev by Date: Inserting a button into another application's toolbar
  • Next by Date: Re: Inserting a button into another application's toolbar
  • Previous by thread: Inserting a button into another application's toolbar
  • Next by thread: Re: Inserting a button into another application's toolbar
  • Index(es):
    • Date
    • Thread