[AD] Re: Re: GCC 4 warnings for MacOS X

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



I don't have 10.4, only 10.2, so I can't investigate things fully
here.
I believe that 10.3 would do the same as 10.2 in this regard. In
general, if I omit setAppleMenu, the system inserts a blank menu with
the application title, then my menu appears to the right of it.

Okay...  I wasn't sure and it didn't seem to make a difference with the
examples on my 10.4 box.  I've since dropped back down to 10.3.9 due to
10.4 conflicts with software I use, so I'm out of the XCode 2 loop
now...

Good to know that someone else is on this, though, as Cocoa isn't my
forte. ^-^;

- Charles

OK, I have a potential patch that I think should work - please see the thread on A.cc for more details:
http://www.allegro.cc/forums/view_thread.php?_id=497928

Pete

Index: src/macosx/main.m
===================================================================
RCS file: /cvsroot/alleg/allegro/src/macosx/main.m,v
retrieving revision 1.22
diff -u -r1.22 main.m
--- src/macosx/main.m   11 Jul 2004 12:15:30 -0000      1.22
+++ src/macosx/main.m   10 Jun 2005 16:44:06 -0000
@@ -187,6 +187,12 @@

 @end

+/* This prevents warnings that 'NSApplication might not
+ * respond to setAppleMenu' on OS X 10.4
+ */
+@interface NSApplication(AllegroOSX)
+- (void)setAppleMenu:(NSMenu *)menu;
+@end


 /* main:





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