Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9065661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:33:38+00:00 2026-06-16T16:33:38+00:00

I want to make a very basic SIMBL Plugin – just add a new

  • 0

I want to make a very basic SIMBL Plugin – just add a new Menu in Safari.
This is what I’ve tried:
I added this to my plist:

<key>NSPrincipalClass</key>
<string>MySamplePlugin</string>
<key>SIMBLTargetApplications</key>
<array>
    <dict>
        <key>BundleIdentifier</key>
        <string>com.apple.Safari</string>
        <key>MaxBundleVersion</key>
        <string>*</string>
        <key>MinBundleVersion</key>
        <string>*</string>
    </dict>
</array>

Then i created the MySamplePlugin classes and a Menu.xib. (All connections are made this can’t be the mistake)
my .h

-(IBAction)clickAbout:(id)sender;
@property (assign) IBOutlet NSMenu *topMenu;

and my .main file

- (id) init {
self = [super init];
if (! self)
    return nil;

[NSBundle loadNibNamed: @"Menu.xib" owner: self];
return self;
}

- (IBAction) clickAbout: (id) sender {
 NSLog(@"do some stuff here");
}



+ (void) load
{
MySamplePlugin* plugin = [MySamplePlugin sharedInstance];
NSMenuItem* item;

item = [[NSMenuItem alloc] init];
[item setSubmenu: [plugin topMenu]];

[[plugin topMenu] setTitle: @"George"];

[[NSApp mainMenu] addItem: item];

NSLog(@"MySamplePlugin installed");
}

+ (MySamplePlugin*) sharedInstance
{
static MySamplePlugin* plugin = nil;

if (plugin == nil)
    plugin = [[MySamplePlugin alloc] init];

return plugin;
}

Any idea why my plugin is not working ? It builds without warnings and i copy it to ~/Library/Application Support/SIMBL/Plugins/

And this is my console.app output: http://cl.ly/LsH9

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T16:33:39+00:00Added an answer on June 16, 2026 at 4:33 pm

    Nevermind i got it with this little code modification:

     NSMenu* mainMenu = [NSApp mainMenu];
    
    NSMenu* debugMenu = [[NSMenu alloc] initWithTitle:@"Menu"];
    NSMenuItem* newItem = [[NSMenuItem alloc] initWithTitle:@"Item" action:nil keyEquivalent:@""];
    
    [newItem setSubmenu:debugMenu];
    [mainMenu addItem:newItem];
    [debugMenu addItemWithTitle:@"Run Unit Tests" action:nil keyEquivalent:@""];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm pretty new to JS but I want to make a very basic RPG
Very basic, but didn't know what this type of query is called...I want a
This is probably a very basic question. I have some objects that I want
I'm creating a very simple django upload application but I want to make it
I am new android app developer i want make app for tablets and phone
This might be a very basic question and might have been discussed, but I
I am relatively new to php. There is a very basic thing that has
I want to create a simple http proxy server that does some very basic
I just want to play a very simple, straight forward note by giving my
Maybe this is a very basic question but i am a beginner in python

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.