Re: [MacRuby-devel] NSLocaliszed* functions missing

2010-05-20 Thread Dave Baldwin
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

Re: [MacRuby-devel] NSLocaliszed* functions missing

2010-05-19 Thread Ed
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

[MacRuby-devel] NSLocaliszed* functions missing

2010-05-19 Thread Dave Baldwin
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/