Re: [MacRuby-devel] MacRuby on Mavericks

2013-11-05 Thread Stephen Horne
rdata/username.xcuserdatad/UserInterfaceState.xcuserstate Bob Rice -- Stephen Horne ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macruby-devel

Re: [MacRuby-devel] Mavericks and Macruby

2013-11-03 Thread Stephen Horne
On 3 Nov 2013, at 11:22, Steve Clarke wrote: > The garbage collector is deprecated but it's still there in Mavericks. > > Steve Ah, thanks. I've been thinking for months that it was going with this release. -- Stephen Horne ___ Ma

Re: [MacRuby-devel] Mavericks and Macruby

2013-11-03 Thread Stephen Horne
he garbage collector that no longer exists. Is that incorrect? -- Stephen Horne ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macruby-devel

Re: [MacRuby-devel] send keystrokes with system.events?

2013-07-04 Thread stephen horne
Hi Bryan, I've done this in the past using quick and dirty NSApplescript: def applescript_exec(script_string)   pnt = Pointer.new_with_type("@")   as = NSAppleScript.alloc.initWithSource(script_string)   as.executeAndReturnError(pnt) end script_string = %{   tell application "Sy

Re: [MacRuby-devel] Fwd: OS X10.9 & MacRuby's future...

2013-05-17 Thread stephen horne
Oh, and "load()" isn't supported either. That's a shame because it means MacRubyReload by Jean-Denis Muys won't work. I had a nifty version of that that reloaded your source files as you save them too =[ fb david kramf 17/05/2013 13:19 Is RubyMotion  a full Ruby. Does

Re: [MacRuby-devel] Fwd: OS X10.9 & MacRuby's future...

2013-05-17 Thread stephen horne
ject using RubyMotion without making any (major) changes? - Matt ___MacRuby-devel mailing listMacRuby-devel@lists.macosforge.orghttps://lists.macosforge.org/mailman/listinfo/macruby-devel stephen horne 17/05/2013 13:26

Re: [MacRuby-devel] Fwd: OS X10.9 & MacRuby's future...

2013-05-17 Thread stephen horne
From what I understand, the only thing missing in Rubymotion is eval() There's an article by Clay Allsop about meta-programming in Rubymotion at http://clayallsopp.com/posts/rubymotion-metaprogramming/ I tested to see if eval() works in desktop Rubymotion apps (I read somewhere that the reason

Re: [MacRuby-devel] NSDocument problems

2013-02-14 Thread stephen horne
I figured out my problem. I had put an object representing the document into the nib where the document was also set as the file's owner, making each document call init twice. A hard-learned lesson. At least I won't forget it. On 14/02/2013, at 01:39, stephen horne wrote: >

[MacRuby-devel] NSDocument problems

2013-02-13 Thread stephen horne
t store set. Although I can then set it by calling a method from a menu that calls the "add_persistent_store(url)" method, and make the document window display the data. Am I missing something? I've been banging my head against this one for hours now. Any help is greatly apprecia

Re: [MacRuby-devel] MacRuby pointers and Obj-C function returning a value by reference

2013-01-21 Thread stephen horne
txtStor.attribute(NSFontAttributeName,atIndex:index,effectiveRange:range) > > my `range` is always `#`. Also, `p range` gives > me `#`. > > Any ideas how to implement this correctly? > > Thanks > K > ___ > MacRuby-devel mail

Re: [MacRuby-devel] MacBacon problem

2012-12-02 Thread stephen horne
1.9 required "rubygems" by default! Thanks! > > On 30/11/2012 10:22, Joshua Ballanco wrote: >> Do you have a "require 'rubygems'" in your script? Unlike Ruby 1.9, MacRuby >> doesn't automatically load RubyGems by default. >> On Friday, Novem

Re: [MacRuby-devel] MacBacon problem

2012-12-01 Thread stephen horne
uot;rvm use system". > Otherwise, try looking at your environment to see if any environment > variables related to RubyGems are set. > On Friday, November 30, 2012 at 9:09 PM, stephen horne wrote: > >> That reads: >> >> #!/Library/Frameworks/MacRuby.framework/Versions/0.

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
> > On Friday, November 30, 2012 at 8:39 PM, stephen horne wrote: > >> Hi Joshua, >> >> No, I had missed that in my script, but now it's there I still get the same >> error. It seems to be happening in /usr/local/bin/macbacon itself, before it >>

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
rubygems'" in your script? Unlike Ruby 1.9, MacRuby > doesn't automatically load RubyGems by default. > On Friday, November 30, 2012 at 8:11 PM, stephen horne wrote: > >> Thanks Daniel, you were right - I'd gem installed it. I've now gem >> uninstalle

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
macgem? You might have to uninstall any other versions you've > installed. > > I never had much luck with RVM+MacRuby; I always installed MacRuby using the > installer from the website. This might have been fixed though. > > dw > > On Fri, Nov 30, 2012 at 10:46 AM

[MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
`load' from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `' Can anyone see what's wrong with my setup? Thanks. -- Stephen Horne ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macruby-devel

Re: [MacRuby-devel] Using Virtus or SmartProperty as outlets?

2012-11-21 Thread stephen horne
ngs, and then query their stringValue or integerValue. Hope that helps. -- Stephen Horne On 21/11/2012, at 20:04, Carolyn Ann Grant wrote: > I've done a bit of Googling, but couldn't find anything on this. I'd like to > use something like SmartProperties (for lightweight situati

[MacRuby-devel] Monitoring file system changes

2012-10-18 Thread stephen horne
nd class Klass def callback(hash) puts hash[:paths_pointer][0] end end callback_object = Klass.new f = FolderWatch.new("/Users/fatboy/Desktop", :callback, callback_object) f.start -- Stephen Horne ___ MacRuby-devel mailing list Ma

[MacRuby-devel] $stderr in MacRuby

2012-06-30 Thread Stephen Horne
but this is on the old system so I'm not sure. Does anyone know how to do this in MacRuby? Thanks. -- Stephen Horne ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] Adding ruby 1.8.7 scripts to an application bundle during build

2012-06-21 Thread Stephen Horne
Consider yourself my hero Mark. Oddly, they appear in the bundle uncompiled, but with their extensions back on =] Thanks for the help. -- Stephen Horne On 21/06/2012 at 12:02, Mark Villacampa wrote: > I'm going to risk this being a stupid answer, but have you tried dele

Re: [MacRuby-devel] Adding ruby 1.8.7 scripts to an application bundle during build

2012-06-21 Thread Stephen Horne
le Resources'. I tried adding another copy files after that one, but it still compiles them. I've tried googling it, but no luck. Am I missing something obvious? Thanks -- Stephen Horne On 21/06/2012 at 08:25, Joshua Ballanco wrote: > Hey Stephen, > > You will need to cr

[MacRuby-devel] Adding ruby 1.8.7 scripts to an application bundle during build

2012-06-20 Thread Stephen Horne
urces' phase of the project's Build Phases in Targets. Does anyone know a way to do this? Thanks, -- Stephen Horne ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] Failing installers

2012-05-03 Thread stephen horne
t the installer runs is found here: > > https://github.com/MacRuby/MacRuby/blob/master/misc/release/package_script/postinstall > > I would guess that it is not able to get the Xcode dir properly and failing > to set it up. > > > > > On 2012-05-02, at 2:03

Re: [MacRuby-devel] Failing installers

2012-05-02 Thread stephen horne
ething with your setup of Xcode, could you > please log a bug with details? This seems like it should be a blocker for > release. > > Sent from my iDevice > > On 2012-05-02, at 12:42, stephen horne wrote: > >> It's been a while since I installed a nightly build b

[MacRuby-devel] Failing installers

2012-05-02 Thread stephen horne
It's been a while since I installed a nightly build because I get a error in the installer ("Installation failed", and "An error occurred while running scripts from the package “macruby_nightly-2012-05-02.pkg”"), and I haven't had the time to look into it. I've just given it another go, and, to

Re: [MacRuby-devel] App Store

2012-03-16 Thread stephen horne
7;ve spent some time figuring out online. I'm not sure exactly what should be going on the wiki, but If this type of page is something people feel is useful I will continue to add to it. Stephen Horne On 16/03/2012, at 02:53, Matt Aimonetti wrote: > It would be great if is someone could

Re: [MacRuby-devel] MacRuby scripting bridge speed

2011-12-24 Thread Stephen Horne
Hi bbiker. It's actually very simple to set it up, I just found it confusing because I, like Steve, have very little idea about Xcode and frameworks and the like. So download the source files from https://github.com/dnagir/appscript/tree/master/macruby-appscript/trunk I got the whole repositor

Re: [MacRuby-devel] MacRuby scripting bridge speed

2011-12-23 Thread Stephen Horne
e needed to check at runtime which version was being used.Steve___MacRuby-devel mailing listMacRuby-devel@lists.macosforge.orghttp://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel Stephen Horne 23 December 2011 12:39

Re: [MacRuby-devel] MacRuby scripting bridge speed

2011-12-23 Thread Stephen Horne
pscript/trunkAl Stephen Horne 16 December 2011 15:17 I'm new to all this, so apologies if I'm doing something daft. I'm trying to create a MacRuby GUI application to parse a load of information from InDesign documents. I've previously made this applicatio

Re: [MacRuby-devel] MacRuby scripting bridge speed

2011-12-23 Thread Stephen Horne
uild frameworks, but maybe I should just get a grip. Fb Al Stephen Horne 16 December 2011 15:17 I'm new to all this, so apologies if I'm doing something daft. I'm trying to create a MacRuby GUI application to parse a load of information from InDesign

Re: [MacRuby-devel] MacRuby scripting bridge speed

2011-12-23 Thread Stephen Horne
Hi Josh. Joshua Ballanco 22 December 2011 15:04 On Friday, December 16, 2011 at 10:17 AM, Stephen Horne wrote:I am afraid I don't have a copy of InDesign, so I cannot test your specific situation. However, it would be interesting to know what pa

[MacRuby-devel] MacRuby scripting bridge speed

2011-12-16 Thread Stephen Horne
I'm new to all this, so apologies if I'm doing something daft. I'm trying to create a MacRuby GUI application to parse a load of information from InDesign documents. I've previously made this application using applescriptObjC, but I was constantly bouncing off the walls of applescript and get