Re: [AD] GCC 4 warnings for MacOS X

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Heya,

Sorry for the lateness of my reply -- it's still No Internet land in my
apartment so I can only post from cafes.

> Cheers.  Committed all the patches except this:
> 
> > --- src/macosx/main.m	Sun Jul 11 12:15:30 2004 UTC
> > +++ src/macosx/main.m	Mon May 16 04:32:54 2005 UTC
> > @@ -223,7 +223,7 @@
> >        keyEquivalent: @""];
> >     [[NSApp mainMenu] addItem: temp_item];
> >     [[NSApp mainMenu] setSubmenu: menu forItem: temp_item];
> > -   [NSApp setAppleMenu: menu];
> > +   //   [NSApp setAppleMenu: menu];
> >     NSString *quit = @"Quit ";
> >     menu_item = [[NSMenuItem allocWithZone: [NSMenu menuZone]]
> >        initWithTitle: [quit stringByAppendingString:
> [[NSProcessInfo processInfo] processName]]
> 
> I realise that the setAppleMenu method seems to have disappeared (!).
> Is it okay just to comment out that call?  What was it supposed to
> do?

To be honest I have absolutely no idea. ^-^;  If I had to guess from
the name it must have something to do with the actual apple menu (the
menu that drops down from an Apple icon in the upper-left corner of the
screen), but that's not something that can programmatically be set IMO;
it's mostly a system thing.

If I'm correct, objective C lets you do weird things with message
passing between classes so that you can change messages passed at
runtime.  (Personally that sounds scary, Yet Another Place for
Programmer Error.)  If messages aren't recognized by the class they're
ignored, so that call is currently being ignored in the code.  However,
the examples and such all compile just fine, so I don't think
commenting it out will make any difference.

Is there anyone on the list better at ObjC than I am?  I'm kind of
learning this as I go along.
- Charles




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/