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: Sat, 12 Nov 2005 08:21:10 -0500
1) yes this code WILL add a menu to the main menu bar at the top of the screen. the menu will be empty but will be there.
2) i have no idea what to write to create a plugin for xcode. you asked me for code to create a menu as a plugin, i've done so. plugins aren't allowed to use the main app's menu system, they get memory access errors trying to modify those, i've tried.
nidhi gupta wrote:
Hi Robert,
Thanks for the reply. Will the code adds a menu to
XCode menu bar. One more thing How will I start from
scratch if I have to create a plugin for XCode. I mean
what all necessary code I have to write so that my
plugin gets registered with Xcode, and in which folder
I should place my plugin so that it gets registered
with XCode.
Thanks in Advance
--- Robert Dell <email@hidden> wrote:
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
Regards
Nidhi
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
_______________________________________________
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