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
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
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/