Dear all,
Started playing with MacRuby again and I need to access the environment
variables.
Say I have a export VARIABLE_NAME = Whatever
I have tried both:
ENV['VARIABLE_NAME']
and
NSProcessInfo.processInfo.environment.objectForKey('VARIABLE_NAME')
Neither of which returns anything
Both work
Hi Erik,
Are you trying to access the environment variables from inside an app or just
another script?
Can you also tell me what version of MacRuby you are using?
Thanks,
Mark
On 2012-10-17, at 11:39 AM, Erik Lundqvist
wrote:
> Dear all,
>
> Started playing with MacRuby again and I
Hi Mark,
It's a MacRuby 0.12 app.
Thank you
On 17 Oct 2012, at 20:56, Mark Rada wrote:
> Hi Erik,
>
> Are you trying to access the environment variables from inside an app or just
> another script?
> Can you also tell me what version of MacRuby you are using?
>
> Thanks,
> Mark
>
>
Ok, so it looks like you are setting the environment variable from the
Terminal.app, and then running the app from Xcode or launching from Finder.
If that's the case, then what you export from the Terminal would not be
available to apps. Exported variables will only be available to descendant
p
OK thanks for explaining it Mark.
I'm afraid setting the variable again in Xcode is not an option. I was hoping
to pick up $CATALINA_HOME to find out where a user had installed tomcat.
On 17 Oct 2012, at 21:51, Mark Rada wrote:
> Ok, so it looks like you are setting the environment variable
Hi,
I went back to working on an old project that uses core graphics and I'm having
problems getting it to run again.
The following code gives me an error with the graphics context:
def drawRect( rect )
return unless @controller
begin
It seems as though the BridgeSupport definition of CGContextRef is missing. At
this point, I'm not sure where it should be coming from, documentation
indicates ApplicationServices.framework, but it's not in there.
On Mountain Lion, we have a similar problem with some CoreGraphics definitions
mi