Re: [gtk-osx-users] Using localization with "Application" menu with the gtk mac integration library.



Sorry, I clipped the obj message.
Try this.

 menuitem = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: NSLocalizedStringFromTable 
(@"Hide" "GtkosxApplication", @"Hide menu item title"), appname]
        action: @selector (hide:)
        keyEquivalent: @"h”];


On Oct 2, 2014, at 9:18 PM, Joshua Pettus <jshpettus gmail com> wrote:

But these last two options you just gave, I got to compile with:

 menuitem = [[[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: NSLocalizedStringFromTable 
(@"Hide" "GtkosxApplication", @"Hide menu item title"), appname]]  
        action: @selector (hide: ) keyEquivalent: @"h”];  (was missing a “[“)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]