Re: How to create plugins for Xcode
Re: How to create plugins for Xcode
- Subject: Re: How to create plugins for Xcode
- From: Robert Dell <email@hidden>
- Date: Thu, 10 Nov 2005 06:18:43 -0500
NSMenu *MainMenu;
NSMenu *myYASSEMenu;
NSMenuItem *YASSEMenuItem;
MainMenu = [[NSApplication sharedApplication] mainMenu];
myYASSEMenu = [[NSMenu alloc] init];
YASSEMenuItem = [[NSMenuItem alloc] init];
[myYASSEMenu setTitle: @"YASSE"];
[YASSEMenuItem setTitle: @"YASSE"];
[YASSEMenuItem setEnabled: YES];
[MainMenu addItem: YASSEMenuItem];
[MainMenu setSubmenu: myYASSEMenu forItem: YASSEMenuItem];
[myYASSEMenu setAutoenablesItems: NO];
the above adds a "YASSE" menu to whatever you got. from there, add whatever you need.
nidhi gupta wrote:
Hi Robert,
I went through your code but what I see in yasse.m is
a collection of a big code which has made me more
confused. Since you are an experienced developer in
creating the plugins, and you talked about some
initialization routines could you please elaborate
which initialization routines I have to write.
Moreover my aim is create a plugin for XCode which
will open ups an html page of our Function Description
when we place the cursor or select that function and
presses some key combination. For this thing to happen
I need to register some callbacks which responds to
the key click event. So could you help me by sending a
small plugin code which adds up a menu item or
responds to a key click event in XCode project.
--- Robert Dell <email@hidden> wrote:
nidhi gupta wrote:
Hi Everyone,
How can I create a plugin for Xcode 1.x that will
add
a menu to the Xcode menu bar. Please help me I am
new
to Plugins your little help will solve my big
problem.
This is urgent!
Regards
Nidhi
i suggest you look at my yasse source code, i do
exactly that in there.
http://sourceforge.net/projects/yasse/
most of what you need is in the initialization
routine. you'll have to adapt the plugin settings
to your project however.
Regards
Nidhi
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden