Re: [MacRuby-devel] LLVM Build Convenience

2009-08-02 Thread Joshua Ballanco
Hey Laurent, I'm not super confortable with this patch, because it relies too much on README.rdoc, if we change it later it might break your change. Also, I don't like automatic scripts because the user doesn't really have the opportunity to customize what's happening. Right. I didn't

[MacRuby-devel] TDD in Objective-C with MacRuby

2009-10-17 Thread Joshua Ballanco
Hey all! So, I've finished up the TDD recipe. You can find a PDF of it at http://files.me.com/jballanc/1lxnwb . Please look it over and let me know what you think! I welcome all comments/criticisms/suggestions. Cheers, Josh ___ MacRuby-devel

Re: [MacRuby-devel] spotlight - MDItemRef

2009-10-28 Thread Joshua Ballanco
Not a dumb question at all, just one of those Ruby-isms that will take some adjusting to if you're coming from a C/C++/Obj-C background. In Ruby, Constants always start with a Capital letter. Therefore, all of the kFooBarBaz constants from Cocoa get translated as KFooBarBaz. Actually,

Re: [MacRuby-devel] How far away is Cucumber and RSpec support?

2009-11-22 Thread Joshua Ballanco
I've been playing with Cucumber, but so far there are still a few issues. It doesn't seem like anything quite so hard to deal with as RSpec, but it's still early days. - Josh On Nov 22, 2009, at 8:15 PM, Laurent Sansonetti wrote: Hi Giampiero, The latest 0.5 beta doesn't run rspec,

Re: [MacRuby-devel] ControlTower in MacRuby

2010-07-28 Thread Joshua Ballanco
Apologies for being so late to reply... On Jul 21, 2010, at 11:44 AM, Nick Ludlam wrote: On 21 Jul 2010, at 15:31, Alexander von Below wrote: Hi Alexander, I've got a MacRuby app happily running very happily with Control Tower. First I cloned the code from github, and built and installed

Re: [MacRuby-devel] ControlTower/Rack question

2010-08-25 Thread Joshua Ballanco
Hi Alex, This is as good a place as any for the time being. So, the way that Rack works is that it takes an app *object* (not a class) and calls the call method on that object each time a request comes in. To facilitate the use of middleware and the combination of multiple Rack app objects in

Re: [MacRuby-devel] ControlTower 1.0

2010-09-21 Thread Joshua Ballanco
No, The Zlib error is the very reason I left it as 'rake' instead of 'macrake'. What errors are you seeing with 'rake'? It should work… - Josh On Sep 21, 2010, at 6:46 AM, Nick Ludlam wrote: Fantastic work, Laurent and Joshua! I'm updating the version I bundle in my app right now. One

Re: [MacRuby-devel] ControlTower 1.0

2010-09-22 Thread Joshua Ballanco
On Sep 21, 2010, at 4:07 PM, russell muetzelfeldt wrote: On 22/09/2010, at 12:00 AM, macruby-devel-requ...@lists.macosforge.org wrote: ... it's out! http://www.macruby.org/blog/2010/09/20/announcing-control-tower.html Give it a try and let us know if you have any problems :) just out

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Joshua Ballanco
Hi Brad, What's happening here is that the 'gem' command that ships with MacRuby is named 'macgem'. However, 'macirb' still looks at the same .irbrc file that the system 'irb' command does. So, if you've put in a require for awesome_print into your .irbrc, then 'macirb' will look for it but

Re: [MacRuby-devel] MacRuby-devel Digest, Vol 32, Issue 13

2010-10-06 Thread Joshua Ballanco
it is more specific than Re: Contents of MacRuby-devel digest... Today's Topics: 1. Re: [ANN] MacRuby 0.7 (Antony Blakey) 2. Re: macirb or not working with awesome_print (Joshua Ballanco) 3. Sequel + SQLite Crash SIGABRT (Mario Steele) 4. Tutorial for the new Sandbox class. (Rob

Re: [MacRuby-devel] control tower with objective-c class

2010-10-06 Thread Joshua Ballanco
Hi L-P, That sounds like a neat idea! I can think of a few ways that it might go wrong, but they're only guesses. Do you have some small sample code that demonstrates the problem? If so, can you open a ticket on track (https://www.macruby.org/auth/login/?next=/trac/newticket) and set the

Re: [MacRuby-devel] URI and NSURL compatibility

2010-10-07 Thread Joshua Ballanco
This is Ruby, where everything is an expression. If you're going to be clever, why not go all the way? --- def is_macruby?; defined?(RUBY_ENGINE) RUBY_ENGINE == 'macruby'; end if is_macruby? framework 'Foundation' else require 'uri' COMPONENTS = [:scheme, :userinfo, :host, :port,

Re: [MacRuby-devel] Future MacRuby support for name-mangling ?

2010-11-14 Thread Joshua Ballanco
Hi Scott, MacRuby's spiritual predecessor RubyCocoa did this sort of substitution of camelCase for under_case. However, I don't foresee this name-mangling being a part of MacRuby's near future for one very important reason: MacRuby methods *are* Objective-C methods. I'm not aware of the

Re: [MacRuby-devel] A little NSStatusBar app - Gmail Notifr

2010-11-19 Thread Joshua Ballanco
Hey James, The C API for the Keychain is not annotated with a bridge support file by default in SnowLeopard, so the first thing you'll need to do is install the BridgeSupport preview. Then you need to know what to put in for the 4 parameters to the method call, which unfortunately is not

Re: [MacRuby-devel] Trying to add Bonjour to a ControlTower app

2010-12-14 Thread Joshua Ballanco
Hi Mark, Instead of messing with sockets on your own, it's fairly easy to advertise and search for Bonjour services using the NSNetService and NSNetServiceBrowser APIs. If you bug me about it tomorrow, I could probably throw together a quick demo of how that would work (might even make a good

Re: [MacRuby-devel] require [was: [ANN] The Flying Camera (game)]

2010-12-20 Thread Joshua Ballanco
It's also worth pointing out that require_relative is not yet implemented in MacRuby... On Mon, Dec 20, 2010 at 8:34 AM, Caio Chassot li...@caiochassot.com wrote: On 2010-12-18, at 19:58 , russell muetzelfeldt wrote: then bar will be included twice since '../bar' does not match

Re: [MacRuby-devel] What's happened to Dispatch::Job?

2011-01-20 Thread Joshua Ballanco
On Thu, Jan 20, 2011 at 10:58 AM, Martin Hawkins martin.hawk...@gmail.comwrote: Back to Grand Central Dispatch which was really the topic of the post - Dispatch and Dispatch::Group are available from macirb, but Dispatch::Job is not, so I suppose I'm really saying that in trying to discover

Re: [MacRuby-devel] Concurrency bug in ControlTower

2011-01-24 Thread Joshua Ballanco
Hey Charles, Sure, this is as good a place as any to report issues on ControlTower. There's also a component for ControlTower on the MacRuby trac site, but I guess we don't really call that out on the web site. Regarding the potential bug...well...where to begin? So, yes, MacRuby blocks have the

Re: [MacRuby-devel] Thread safety in apply example?

2011-01-24 Thread Joshua Ballanco
On Sat, Jan 22, 2011 at 12:57 AM, Charles Oliver Nutter head...@headius.com wrote: I'm curious about this example in Queue#apply's rdoc: * gcdq = Dispatch::Queue.new('doc') * @result = [] * gcdq.apply(5) {|i| @result[i] = i*i } * p @result #= [0, 1, 4, 9, 16, 25]

Re: [MacRuby-devel] Thread safety in apply example?

2011-01-24 Thread Joshua Ballanco
On Mon, Jan 24, 2011 at 12:15 PM, Charles Oliver Nutter head...@headius.com wrote: Queue#apply is actually defined in gcd.c in MacRuby's code, so this would be a MacRuby bug. I'd have filed it, but I wasn't sure if I was missing something about MacRuby's Array and thread-safety. Yeah,

Re: [MacRuby-devel] Thread safety in apply example?

2011-01-24 Thread Joshua Ballanco
On Mon, Jan 24, 2011 at 8:20 PM, Charles Oliver Nutter head...@headius.comwrote: Yes, forcing the updates to run serially rather than in parallel. The poor-man's fork/join. More like a map-reduce, I would think. In fact, at some point in the past the dispatch extras (i.e. everything in

Re: [MacRuby-devel] Thread safety in apply example?

2011-01-25 Thread Joshua Ballanco
On Tue, Jan 25, 2011 at 3:13 AM, Charles Oliver Nutter head...@headius.comwrote: On Tue, Jan 25, 2011 at 2:11 AM, Charles Oliver Nutter head...@headius.com wrote: I did have to hack around the parser logic, since native extensions largely mean death for concurrency on JRuby (and by native I

Re: [MacRuby-devel] Gems again; signing records

2011-01-28 Thread Joshua Ballanco
On Fri, Jan 28, 2011 at 12:41 PM, Martin Hawkins martin.hawk...@gmail.comwrote: In rb_main.rb $:.unshift File.join(File.dirname(__FILE__), 'Vendor/uuid-2.3.1/lib') $:.unshift File.join(File.dirname(__FILE__), 'Vendor/macaddr-1.0.0/ lib') require 'macaddr' require 'uuid' However, when

Re: [MacRuby-devel] Strange behaviour when using a Proc for a callback

2011-02-03 Thread Joshua Ballanco
Looks like a bug with the way the Cocoa object is boxed. Can you file it at https://www.macruby.org/trac/newticket ? Cheers, Josh On Wed, Feb 2, 2011 at 8:51 PM, Mark Rada mr...@marketcircle.com wrote: Hi, I was trying to setup an async callback using a proc instead of a method to register

Re: [MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-11 Thread Joshua Ballanco
Considering that the updated minitest library also contains the new benchmarking facilities (though I don't think that part was officially adopted by MRI), it might be worth considering pulling from upstream. On Fri, Feb 11, 2011 at 9:37 AM, Eloy Duran eloy.de.en...@gmail.com wrote: This

Re: [MacRuby-devel] Core Data / MacRuby article

2011-02-11 Thread Joshua Ballanco
Great article! Regarding the sqlite store, I think it would be best to keep the default to XML for the template...just to be consistent with Xcode's Obj-C templates. However, it might be nice to add something to the macruby_deploy script to switch this over to SQLite? On Fri, Feb 11, 2011 at 1:47

Re: [MacRuby-devel] About rake, llvm_config and prefix

2011-02-22 Thread Joshua Ballanco
Have a look at the output of running 'rake -T' in the directory where you checked out MacRuby's source. That should answer your question. On Sat, Feb 19, 2011 at 12:00 PM, Huahang Liu huahang@gmail.com wrote: Greetings All, I was trying to build MacRuby. However, I got an error saying

Re: [MacRuby-devel] Towards a compile option for macgem

2011-02-22 Thread Joshua Ballanco
Hey Mark, I agree with Matt that macruby_deploy needs work in this area, and any effort you can contribute (or experience that you have gained from working on your gem plugin) would be greatly appreciated. That said, I think a gem plugin is a separate (and, IMHO at least, as valuable) issue. So

Re: [MacRuby-devel] 0.9 update

2011-02-23 Thread Joshua Ballanco
It would be nice if you could try the latest nightly build with your app and favorite Ruby lib, and let me know if you find anything wrong Happy to report all ControlTower samples are working with trunk, cap'n! ___ MacRuby-devel mailing list

Re: [MacRuby-devel] Should Mechanize Work with MacRuby?

2011-03-04 Thread Joshua Ballanco
with MacRuby, then that would indicated a bug. A reduced test case would be desirable, but bug reports are always welcome. Cheers, Joshua Ballanco On Thu, Mar 3, 2011 at 3:18 PM, Duane Kiefer dekie...@earthlink.net wrote: I'm trying to use Mechanize with MacRuby but it fails with the following error

Re: [MacRuby-devel] MacRuby build issues with LLVM

2011-03-09 Thread Joshua Ballanco
Nick, I'm currently using Homebrew's llvm with MacRuby. Try passing the --universal switch when you install llvm (i.e. brew install llvm --universal). You also might try building and installing clang at the same time (i.e. brew install llvm --universal --clang) and see if clang can compile a

Re: [MacRuby-devel] Core Data brain-o

2011-03-21 Thread Joshua Ballanco
Just to clarify the reason behind this, in Ruby 1.9 { foo:bar } translates into { :foo = bar }. Since you want a has using constants as keys, the shorthand notation doesn't work. In other words, your first example translates to: psc_options = { :NSMigratePersistentStoresAutomaticallyOption =

Re: [MacRuby-devel] XCode 4 and ObjC bundles

2011-04-12 Thread Joshua Ballanco
My suggestion would be to forgo using XCode to build the Obj-C extension, and instead use mkmf like you would with any other Ruby C-extension. Then you can just add a script build stage to your project. If you want to see an example of a MacRuby project with an Obj-C extension, take a look at

Re: [MacRuby-devel] XCode 4 and ObjC bundles

2011-04-12 Thread Joshua Ballanco
One advantage to mkmf and extconf.rb (that's the file that you actually run through macruby to generate a Makefile) is that it can take care of most of the difficult parts of generating a Makefile for you (like determining header locations and library availability, etc.). Finding good

Re: [MacRuby-devel] no superclass method `initialize' with xml-object gem

2011-04-12 Thread Joshua Ballanco
Actually, it would be great if you could file a report on MacRuby's trac: https://www.macruby.org/trac/report Thanks! On Tue, Apr 12, 2011 at 8:29 PM, Andre Lewis andre.le...@gmail.com wrote: Hey all, I hit a snag with the xml-objecthttp://rubygems.org/gems/xml-objectgem on MacRuby; the code

Re: [MacRuby-devel] How do I get gems into XCode/MacRuby environment?

2011-04-13 Thread Joshua Ballanco
Try using macgem. All of the MacRuby binaries are prefixed with mac- (macruby, macirb, macri, etc.) On Thu, Apr 14, 2011 at 1:44 AM, Paul Davis peedeem...@gmail.com wrote: I'm past the Hello World tutorial, and want to try something useful but I cannot seem to access my gems from within the

Re: [MacRuby-devel] Hash Table

2011-04-18 Thread Joshua Ballanco
Actually, it's quite a bit more complicated than that. NSString, NSDictionary, and NSArray are class clusters. In practice, you are never actually dealing with an NSString, but rather a specialized subclass in the class cluster. Originally, String in MacRuby was implemented using NSCFString (one

Re: [MacRuby-devel] NSTrackingArea

2011-04-27 Thread Joshua Ballanco
Thomas, Are you still getting an undefined method error, or something new? Do you have a framework 'Cocoa' line somewhere in your app? - Josh On Wed, Apr 27, 2011 at 12:10 PM, Thomas R. Koll i...@ananasblau.comwrote: Nope, still no good. Am 27.04.2011 um 18:07 schrieb Kam Dahlin: Hi,

Re: [MacRuby-devel] macruby rspec mock odd behavior

2011-05-06 Thread Joshua Ballanco
Hi Gabriel, So, you've stumbled across a bit of a confusing feature of MacRuby and interaction with Obj-C. The full method name of the Obj-C method, as Ruby sees it, is actually buildRequestWithUrl:method:header:body:, since this is the selector. So, I think your mock should work if you simply

Re: [MacRuby-devel] MacRuby Application .pkg install results in Unsupported Architecture

2011-05-10 Thread Joshua Ballanco
Hey Daniel, Check in the console (/Applications/Utilities/Console.app) to see if there are any more specific warnings that get logged when you attempt to log your app. Have you verified the built architectures of all the binaries in your .app bundle with `file`? Also, you might try

Re: [MacRuby-devel] I don't normally plug the mailing list, but when I do it's for gemaholics

2011-06-19 Thread Joshua Ballanco
Very cool stuff, Rob! Have you considered potentially merging Hotkeys and mynu into HotCocoa? - Josh On Friday, June 17, 2011 at 3:09 PM, Robert Lowe wrote: Hi guys, Hope you enjoy em! All of these are on rubygems now: Wrapping NSMXL (Credit to Wilson Lee / kourge):

Re: [MacRuby-devel] I don't normally plug the mailing list, but when I do it's for gemaholics

2011-06-19 Thread Joshua Ballanco
. You can always just require them as needed. Can you think of a use case for it? Regards, - Rob On 2011-06-19, at 7:10 PM, Joshua Ballanco wrote: Very cool stuff, Rob! Have you considered potentially merging Hotkeys and mynu into HotCocoa? - Josh On Friday, June 17, 2011

Re: [MacRuby-devel] Xcode4 - Unit Tests / Run Script output

2011-07-24 Thread Joshua Ballanco
Hi Rob, I wrote that original guide and, I'm sorry to say, I haven't had a chance to update it since Xcode 4 was released. Personally, I'm not a huge fan of OCTest, and I'm not too concerned about having MacRuby based tests run inside the OCTest step. That said, if you have ideas for a simple

Re: [MacRuby-devel] GPL and the App Store

2011-10-06 Thread Joshua Ballanco
Hi Mike, I am also not a lawyer, but it is worth noting that the Ruby license is a dual license, with one part being the GPL and the other being a slightly relaxed version of the BSD 2-clause license. That said, there are a few libraries which can be *optionally* compiled in with Ruby (e.g.

Re: [MacRuby-devel] GPL and the App Store

2011-10-06 Thread Joshua Ballanco
On Thursday, October 6, 2011 at 10:03 PM, Mike Boone wrote: I'm not experienced with Ruby's source code. The only files which mention the GPL in LEGAL are parse.c and util.c. Is the vanilla MacRuby using those? If not, it seems there is no issue, but perhaps the documentation should reflect

Re: [MacRuby-devel] locals dispatch: is using a pointer the best practice?

2011-10-22 Thread Joshua Ballanco
On Saturday, October 22, 2011 at 1:35 AM, Michael Johnston wrote: When I need to get a queue-protected result into a local in code that is concurrent (so I can't use an ivar) is a pointer the best (only) way to get the result of a sync block? Assuming I don't want to factor out a method

Re: [MacRuby-devel] locals dispatch: is using a pointer the best practice?

2011-10-22 Thread Joshua Ballanco
) On 2011-10-22, at 12:32 AM, Joshua Ballanco wrote: On Saturday, October 22, 2011 at 1:35 AM, Michael Johnston wrote: When I need to get a queue-protected result into a local in code that is concurrent (so I can't use an ivar) is a pointer the best (only) way to get the result of a sync

Re: [MacRuby-devel] Is this possible in MacRuby?

2011-11-19 Thread Joshua Ballanco
On Thu, Nov 17, 2011 at 1:07 PM, az...@gmx.net az...@gmx.net wrote: Hi All, Is it possible to make a Lion app(/option) with MacRuby which allows you to change the opacity (alpha value) of other apps/windows via the View menu? So say I have a PDF open in Preview, I'd go to: view menu

Re: [MacRuby-devel] Is this possible in MacRuby?

2011-11-23 Thread Joshua Ballanco
a website limiter - where you can set time limits or time-frames for certain websites. I'm guessing something like it might be possible as Little Snitch intercepts network connections :/ Thanks in advance. Aston On 20 Nov 2011, at 00:37, Joshua Ballanco wrote: On Thu, Nov 17, 2011 at 1:07 PM, az

Re: [MacRuby-devel] Speed

2011-12-21 Thread Joshua Ballanco
2011/12/20 François Boone francois.bo...@usherbrooke.ca Hi, I have written a function with 461 queries in a MySQL database. With macirb, it takes more or less 1s for all queries. I put my file in a Xcode project and when I click on a button, the action is to run this function. However, it

Re: [MacRuby-devel] A Future for MacRuby

2011-12-22 Thread Joshua Ballanco
Hey all, I think we need to understand that this thread has been conflating two different issues: 1. Apple support for MacRuby, and 2. the future roadmap for MacRuby. As for #1: I would respectfully suggest that if you feel you need some sort of official blessing from Apple in order to continue

Re: [MacRuby-devel] MacRuby scripting bridge speed

2011-12-22 Thread Joshua Ballanco
On Friday, December 16, 2011 at 10:17 AM, Stephen Horne wrote: #!/usr/local/bin/macruby framework 'Foundation' framework 'ScriptingBridge' # I followed Matt's instructions for making the bridge support file, but I wasn't sure where it needs to go, so I did this for a quick fix.

Re: [MacRuby-devel] Speed

2011-12-22 Thread Joshua Ballanco
2011/12/21 François Boone francois.bo...@usherbrooke.ca Hi Josh, In macirb, I use: load actionAffiche.rb 461 queries, real time: 11.578257s In Xcode: I use rubygems and mysql macgems I have one Button and one table with two columns: when I press the button, the function actionAffiche is

Re: [MacRuby-devel] Key-Value Compliance valueForKey:

2011-12-22 Thread Joshua Ballanco
Hey Patrick, Just wanted to follow up on this…did you manage to resolve the issue? If not, could you make sure you log this bug with Trac (https://www.macruby.org/trac/report)? Thanks! - Josh On Thursday, November 17, 2011 at 3:44 PM, Patrick Rogers wrote: Hi everyone, I'm trying to

Re: [MacRuby-devel] MacRuby scripting bridge speed

2011-12-22 Thread Joshua Ballanco
If it is ScriptingBridge that is slowing things down, then this sounds like perfect fodder for a bug report to Apple. - Josh On Thursday, December 22, 2011 at 12:15 PM, Alan Skipp wrote: On 16 Dec 2011, at 15:17, Stephen Horne wrote: This code works, but it takes 15+ seconds to set up

Re: [MacRuby-devel] A Future for MacRuby

2011-12-23 Thread Joshua Ballanco
On Thursday, December 22, 2011 at 11:15 PM, Jeff Hemmelgarn wrote: I cannot separate the stakeholders (and their issues) from the roadmap. MacRuby will go where people who care to push want it to go. Barring getting a job where I am paid to push MacRuby in a certain direction, I will be at

Re: [MacRuby-devel] Building MacRuby with GNU readline support

2011-12-24 Thread Joshua Ballanco
Since Ruby uses readline vi the extension, that should definitely work. Keep in mind as you do, however, that macirb is actually DietRB, a lightweight IRB replacement written by Eloy. So, there may be some differences with IRB. Personally, I've never tried vi-editing mode in either, but if you

Re: [MacRuby-devel] macruby GCD Fibers

2012-01-10 Thread Joshua Ballanco
Hey Alan, Awesome! I haven't had a chance to go through the code in detail, but I like the general approach. I'll definitely be looking into this in more detail later, but for now I just wanted to let you know that there are specs for Ruby 1.9's fibers in the MacRuby repo at

Re: [MacRuby-devel] loading Quicktime Framework

2012-01-10 Thread Joshua Ballanco
Quicktime is only supported for 32-bit architectures. MacRuby currently defaults to building 64-bit, so you would have to go through QTKit to access Quicktime functionality. Alternately (and preferably) you should look into using AVFoundation for video. - Josh On Tuesday, January 10,

Re: [MacRuby-devel] MacRuby Xcode templates DO load

2012-01-13 Thread Joshua Ballanco
Hey Jean-Denis, Actually, this is a good find! I think it might even be desirable to at least have the option of installing the templates locally (instead of system-wide). Would you mind filing a bug in Trac requesting that option? Thanks! - Josh On Thursday, January 12, 2012 at 8:37 AM,

Re: [MacRuby-devel] MacRuby, Control Tower and Sinatra.

2012-01-13 Thread Joshua Ballanco
Hmm…this is an interesting case. It's possible that we've not fully looked into calling super with explicit block args. Can you see if this can be reduced to a simple, self-contained example? Either way, it would be good to have a Trac ticket for this issue. Thanks! - Josh On Thursday,

Re: [MacRuby-devel] Bug with #method.call and blocks

2012-01-25 Thread Joshua Ballanco
Exact same thing was recently reported on JRuby: http://twitter.com/#!/headius/status/161662203223752704 I'd file a bug. Closed as dup is no skin off a dev's back, but unreported issues are guaranteed never to be fixed (well, almost…) ;) On Wednesday, January 25, 2012 at 2:59 AM, Gabriel

Re: [MacRuby-devel] Bug with #method.call and blocks

2012-01-25 Thread Joshua Ballanco
, Joshua Ballanco wrote: Exact same thing was recently reported on JRuby: http://twitter.com/#!/headius/status/161662203223752704 I'd file a bug. Closed as dup is no skin off a dev's back, but unreported issues are guaranteed never to be fixed (well, almost…) ;) On Wednesday

Re: [MacRuby-devel] Phantom closed windows in document based apps

2012-01-30 Thread Joshua Ballanco
You're likely seeing the effect of GC. I suspect that if you did a GC.start before inspecting, or compiled the Obj-C template and ran it under GC, then you would find more consistent results. :) - Josh On Friday, January 20, 2012 at 2:09 PM, Milos Slavica wrote: Hi, Has anyone seen

Re: [MacRuby-devel] Compiling with debug information

2012-02-20 Thread Joshua Ballanco
Sadly, I think the missing #ifndef is merely a symptom of laziness. If you wanted to send a pull request, I don't think anyone would object to merging it in :) On Monday, February 20, 2012 at 10:37 AM, Marc Abramowitz wrote: I might be missing something obvious here. I want to be able to

Re: [MacRuby-devel] Structs are broken

2012-03-25 Thread Joshua Ballanco
Hi Fjölnir, As I think I mentioned in IRC, my best guess is that this is a bridge support bug. Have you filed a bug with Apple at all? Something else you might try (if you have the time) is to access your struct using the pyobjc bridge, which also makes use of bridge support, to see if this is

Re: [MacRuby-devel] The Future of MacRuby

2012-04-06 Thread Joshua Ballanco
On Friday, April 6, 2012 at 8:00 PM, Henry Maddocks wrote: I have Ruby, C, C++ and Obj-C experience, but the one thing that is holding me up from contributing is a simple one page description from the source level of what happens when you run a script in MacRuby. Is anyone able to write

Re: [MacRuby-devel] The Future of MacRuby

2012-04-07 Thread Joshua Ballanco
On Friday, April 6, 2012 at 11:06 PM, Henry Maddocks wrote: The MacRuby VM is very nicely tailored to the job of running on top of the Objective-C runtime. It is also fairly mature. Personally, I see no technical reason that a proliferation of VMs should be a problem (there are at least

Re: [MacRuby-devel] The Future of MacRuby

2012-04-09 Thread Joshua Ballanco
When I was still at Apple, I actually started work on a library for MacRuby backed by CoreData, but I had to leave it before it was done. To address the why question: CoreData ties in very closely with a lot of the Cocoa UI libraries (and other libraries). It also has features that other Ruby

Re: [MacRuby-devel] Installer Fails

2012-04-16 Thread Joshua Ballanco
There was an issue building some of the nightlies as we were transitioning the build system. You should be able to identify the bad builds by looking at the file size, as the broken installers ended up being much smaller. Have you tried one of the most recent nightlies? - Josh On Mon, Apr 16,

Re: [MacRuby-devel] Multiple enumerations

2012-05-02 Thread Joshua Ballanco
Hmm…in general I would steer clear of scripting bridge when equivalent functionality is available elsewhere. In this case, you can make use of the Quartz Event Services. There's a Stack Overflow answer here that should be able to get you started:

[MacRuby-devel] Github Issues: Now open for your MacRuby bugs!

2012-05-15 Thread Joshua Ballanco
Hello all, Quick summary: go to https://github.com/MacRuby/MacRuby/issues to file all your MacRuby bugs from now on. As had been previously discussed, today we've gone ahead and opened Github issues for the MacRuby project. At the same time, we've frozen the old Trac reporting tool and will

Re: [MacRuby-devel] Time.new.utc.round ?

2012-05-29 Thread Joshua Ballanco
Thanks! On Tuesday, May 29, 2012 at 7:17 PM, Milos Slavica wrote: Issue #94: https://github.com/MacRuby/MacRuby/issues/94 Cheers! milos On 29 May 2012, at 17:58, Joshua Ballanco wrote: Yes, this seems like a bug. Would you mind filing an issue on the Github issue tracker

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

2012-06-21 Thread Joshua Ballanco
Hey Stephen, You will need to create a new Move Files phase (can't remember the exact name at the moment…) after the macruby_deploy phase. The macruby_deploy script will attempt to compile any *.rb file it finds under your project, which is why you're seeing this. Cheers, Josh On

Re: [MacRuby-devel] MacRuby questions

2012-06-30 Thread Joshua Ballanco
On Thursday, June 21, 2012 at 5:46 PM, Kevin Walzer wrote: Hello all, Hi! and Welcome! I had a few questions about MacRuby and its differences from standard C-Ruby: 1. Is MacRuby mature enough to function as a drop-in replacement for standard Ruby? Are there significant gaps in

Re: [MacRuby-devel] Greetings MacRuby Dev

2012-06-30 Thread Joshua Ballanco
On Saturday, June 30, 2012 at 11:11 AM, Jonathan Silverman wrote: Hi My Name is Jonathan (JSILVER) Siilverman What is your status? I would like to help you. Also, I seek information on Sandboxing MacRuby apps for Mountain Lion and beyond. I want to help with MacRuby's success, because it

Re: [MacRuby-devel] LLVM 3.1 Support

2012-06-30 Thread Joshua Ballanco
Hey John, Just took a look, and you've certainly made more progress than myself! (My branch is/was at https://github.com/jballanc/MacRuby/tree/llvm-3.0). I saw that you just have a commit on the master branch, though. It would be best if you created a new branch in your personal MacRuby fork

Re: [MacRuby-devel] What's going on with MacRuby?

2012-09-28 Thread Joshua Ballanco
Hi Jim, I can only speak for myself, but moving (to another continent even), starting a new job, and having a new baby would, I think, qualify as busy! ;-) Admittedly the mailing list activity has dropped off a bit, but I do still and try to monitor #macruby on Freenode and the GitHub project

Re: [MacRuby-devel] Core Dump When Importing 3rd Party gems

2012-11-14 Thread Joshua Ballanco
Hi Jason, The gems you reference include C extensions, which are *mostly* supported by MacRuby, but there are bound to be a few bugs. Do you have crash logs for these failures? If so, would you mind filing a Github issue with the crash logs attached (or linked as a Gist)? Thanks, Josh On

Re: [MacRuby-devel] New Version of GlobalChat2 Pro on App Store

2012-11-14 Thread Joshua Ballanco
Awesome job! Congrats! On Friday, November 9, 2012 at 7:52 AM, J Silver wrote: Thanks Mark! I will have a look. On 08/11/2012 21:20, Mark Villacampa wrote: Nice!! Good work. Looking forward to the report on the current status of Ruboto :) Another possible windows-linux cross

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread Joshua Ballanco
/bin/macbacon itself, before it gets to my script. Stephen On 30/11/2012, at 18:22, Joshua Ballanco jball...@gmail.com (mailto:jball...@gmail.com) wrote: Do you have a require 'rubygems' in your script? Unlike Ruby 1.9, MacRuby doesn't automatically load RubyGems by default

Re: [MacRuby-devel] Mavericks and Macruby

2013-11-02 Thread Joshua Ballanco
I haven't had time to update to Mavericks yet, so I couldn't tell you for sure, but the summary_indent= error looks like it may be a consequence of the upgraded 2.0 version of Ruby on the system. IIRC, there should still be a copy of the 1.8 Ruby version (under /System/Library I think?). If you

Re: [MacRuby-devel] MacRuby on Mavericks

2013-11-07 Thread Joshua Ballanco
Hey Rob, I had planed on writing a longer message to the list but, having just started a new gig, time is severely lacking. Also, it seems it'll be at least 2-3 weeks (thank Apple store ship times) before I get a chance to test anything on Mavericks. Here's what I can tell you so far: *

Re: [MacRuby-devel] MacRuby on Mavericks

2013-11-13 Thread Joshua Ballanco
On Sunday, November 10, 2013 at 8:16 AM, Robert Carl Rice wrote: On Nov 7, 2013, at 9:07 AM, Joshua Ballanco jball...@gmail.com (mailto:jball...@gmail.com) wrote: * MacRuby integration with Xcode relies on rb-nibtool, but the Xcode team has repeatedly signaled (not so subtly

Re: [MacRuby-devel] MacRuby on Mavericks (or go to RubyMotion?)

2013-11-24 Thread Joshua Ballanco
Hey Rob, Glad to hear that your experience has been so good thus far! I can vouch for the guys at HipByte, and I’m sure they will be more than willing to help you (or anyone) out along the way as you make the transition (and hit the inevitable road-bumps). As for IB support and the lack of