Re: [gtk-osx-users] Using localization with "Application" menu with the gtk mac integration library.
- From: Kevin Bernhagen <kevin calxalot net>
- To: Joshua Pettus <jshpettus gmail com>
- Cc: gtk-osx-users-list gnome org
- Subject: Re: [gtk-osx-users] Using localization with "Application" menu with the gtk mac integration library.
- Date: Thu, 2 Oct 2014 21:36:52 -0700
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]