Thank you! I promise to do a better search before I ask any more questions.
On 16 Nov 2011, at 19:25, Mateus Armando wrote:
> It’s a macro and I solved this problem like this:
>
> module Kernel
> private
>
> def NSLocalizedString(key, value)
> NSBundle.mainBundle.localizedStringForKey(
hat it is preprocessor macros because it Xcode it highlight's
> as a macros: http://cl.ly/Bqw9
>
> On Wed, Nov 16, 2011 at 7:39 PM, Colin McPhail
> wrote:
> Hi,
>
> I'm having trouble calling the Foundation function NSLocalizedString from
> within a metho
Hi,
I'm having trouble calling the Foundation function NSLocalizedString from
within a method I have added to class NSRunningApplication:
class NSRunningApplication
def activeString
active? ? NSLocalizedString("Yes", "Yes") : NSLocalizedString("No", "No")
end
end
The error message I get
According to this thread
http://stackoverflow.com/questions/7010233/gc-operation-on-unregistered-thread
it has been filed as bug 9928419 . I would have checked this out but I can't
figure out how to search all bug reports, not just ones I may have reported.
Do I have to be a paid-up member o
Alex Greif wrote ...
> I tried the subprocess sample with the AsyncHandler from
> http://ofps.oreilly.com/titles/9781449380373/_foundation.html
> and found the following problem:
> if I execute the code many times (I tried 20 times) in my terminal with
> $ macruby sample.rb
> then 2-3 times it does