[MacRuby-devel] NSLocaliszed* functions missing
Ed
mred at dharmagaia.com
Wed May 19 09:04:24 PDT 2010
Hi Dave,
NSLocalizedStringFromTable is a C macro defined in NSBundle.h that wraps a call to localizedStringForKey:value:table:.
You can call the localize method directly by using something like:
NSBundle.mainBundle.localizedStringForKey('key', value:'value', table:'table').
HTH,
Ed
On May 19, 2010, at 9:25 AM, Dave Baldwin wrote:
> With macruby 0.6 when I try and use NSLocalizedStringFromTable I get the following:
>
> ~> macirb
> irb(main):001:0> framework 'cocoa'
> => true
> irb(main):002:0> NSLocalizedStringFromTable('', '', '')
> NoMethodError: undefined method `NSLocalizedStringFromTable' for main:TopLevel
> from /Users/dave/(irb):2:in `<main>'
>
> I believe NSLocalizedStringFromTable is part of the Foundation framework.
> Also all the other NSLocalized* functions seem to be missing.
>
> Dave.
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
More information about the MacRuby-devel
mailing list