Le 3 oct. 04, =E0 00:53, Jonathan 'Wolf' Rentzsch a =E9crit :
> Philippe Mougin, pm...@ac..., wrote:
>> You can also do this:
>>
>> menu :=3D FScriptMenuItem alloc init autorelease.
>> NSApplication sharedApplication mainMenu addItem:menu.
>> menu interpreterView interpreter browse:myObject.
>
> Cool. But how do I get to the console before the menu item is =20
> installed?
> :-)
8-)
I'm dumb. I meant: enter these 3 commands in GDB:
set $menu =3D (id)[(id)[(id)NSClassFromString(@"FScriptMenuItem") alloc] =
=20
init]
p (id)[(id)[(id)[NSApplication sharedApplication] mainMenu] =20
addItem:$menu]
p (id)[(id)[(id)[$menu interpreterView] interpreter] browse:myObject]
Thanks for your code.
Best,
Philippe Mougin
>> It might be interesting to add something like that to F-Script.
>> Show us the code!
>
> I added one new .nib -- FSConsole2.nib -- to the framework, added its
> related controller class FSConsole2Controller.hm and modified
> BigBrowserView.m and BigBrowserToolbar.m.
>
> <http://rentzsch.com/share/FScriptSources-20040821-=20
> wolf_console_toolbar.tgz
>>
>
> FSConsole2 is poorly named. I went to name it FSConsole, saw the name =20=
> was
> already in use, and couldn't think of anything better :-(
>
> | Jonathan 'Wolf' Rentzsch http://rentzsch.com
> | Red Shed Software http://redshed.net
> | "better" necessarily means "different"
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on =20
> ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give =
=20
> us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out =
=20
> more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> F-Script-talk mailing list
> F-S...@li...
> https://lists.sourceforge.net/lists/listinfo/f-script-talk
>
|