Thanks, That did the trick. Docs didn't say about it being a macro, unless I overlooked it. Dave. On 19 May 2010, at 17:04, Ed wrote:
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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel