[MacRuby-devel] environment variables

2012-10-17 Thread Erik Lundqvist
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

Re: [MacRuby-devel] environment variables

2012-10-17 Thread Mark Rada
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

Re: [MacRuby-devel] environment variables

2012-10-17 Thread Erik Lundqvist
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 > >

Re: [MacRuby-devel] environment variables

2012-10-17 Thread Mark Rada
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

Re: [MacRuby-devel] environment variables

2012-10-17 Thread Erik Lundqvist
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

[MacRuby-devel] Quartz 2D Graphics problem

2012-10-17 Thread Robert Carl Rice
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

Re: [MacRuby-devel] Quartz 2D Graphics problem

2012-10-17 Thread Mark Rada
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