Re: [MacRuby-devel] RubyMotion: Ruby for iOS

2012-05-03 Thread Richard Kilmer
This argument can truly be made about any commercial tool you use to build with or build upon. Any company of any size can discontinue a product or service at any time. You have to realize that. The RubyMotion you use today you can continue to use whether you pay for ongoing support or not.

Re: [MacRuby-devel] NSTimer.timerWithTimeInterval ?

2011-11-07 Thread Richard Kilmer
Take the calling param sequence and turn it into a 1.9 hash statement in order :) timer = NSTimer.timerWithTimeInterval 60, target: self, selector: 'recheckAndUpdateTitle:', userInfo: nil, repeats: true because this is the actual selector: timerWithTimeInterval:target:selector:userInfo:repeats

Re: [MacRuby-devel] Any volunteers to help maintain http://www.macruby.org?

2009-08-20 Thread Richard Kilmer
This is from something I wrote a while ago on how to write a recipe but did not post to the site. I added stuff on how to do blog posts too. Writing a recipe/blog post for the MacRuby website is very easy. First, you need to get the MacRuby website source checked out on your computer.

Re: [MacRuby-devel] SnowLeopard: Macruby 0.4 macirb crash

2009-06-10 Thread Richard Kilmer
From Laurent's last update: - The project is now able to be installed and used on Mac OS 10.6. It should theoretically work with the latest seeded build, using the same building instructions as mentioned in README.rdoc, and pass our spec suite. Please contact me offline if you have any prob

Re: [MacRuby-devel] SnowLeopard: Macruby 0.4 macirb crash

2009-06-10 Thread Richard Kilmer
As far as I know, the experimental branch (0.5) is supposed be be SL friendly, I don't think 0.4 was/is. The experimental branch will move to trunk as soon as a few more stabilizations take place. The good news is 0.5 is running a significant number of the Ruby Specs and passing with flyi

Re: [MacRuby-devel] Running the experimental branch

2009-04-04 Thread Richard Kilmer
On Apr 4, 2009, at 8:18 PM, Vincent Isambart wrote: In the comments of Charlie's latest blog post, someone showed their benchmarks of the 0.5 branch running tak(). http://blog.headius.com/2009/04/how-jruby-makes-ruby-fast.html#comments I'd like to do the same but rake isn't giving me a macruby

Re: [MacRuby-devel] NSControl's partial mapping to HotCocoa

2009-04-02 Thread Richard Kilmer
setEnabled should be called on the instance, not the class: NSButton.new.respond_to?("setEnabled") == true -rich On Apr 2, 2009, at 6:08 AM, Frisco Del Rosario wrote: NSButton inherits from NSControl, which — according to http://www.macruby.org/trac/wiki/HotCocoaStatus — is partially mapped

Re: [MacRuby-devel] branches/experimental

2009-03-28 Thread Richard Kilmer
This is awesome new Laurent! You have done amazing work to get this far and I know you will get it all the way. Also Eloy and Vincent helped a lot with both the VM and specs and tests. Thanks to all of you! Do you have any plans for enlisting specific support you need to move things al

Re: [MacRuby-devel] Recent changes cause gem statement to fail

2009-03-02 Thread Richard Kilmer
Scott, We merged in the lib directory from 1.9.1_0 tag (there were over 250 changes since last time Laurent merged). We are now going through and validating things (including RubyGems). For the next few days trunk will (thus) be a tad unstable. Best, Rich On Mar 2, 2009, at 10:00 PM, M.

Re: [MacRuby-devel] HotCocoa subclassing NSView

2009-02-21 Thread Richard Kilmer
never left my 'holy' device. Rich, what do you think about adding a new HotCocoa CustomView mapping since subclassing NSView seems to be pretty common. - Matt On Tue, Feb 17, 2009 at 10:47 AM, Richard Kilmer wrote: They do inherit constants, custom methods, etc (see lib/hotcocoa

Re: [MacRuby-devel] HotCocoa subclassing NSView

2009-02-17 Thread Richard Kilmer
l the mapping goodies. - Matt On Tue, Feb 17, 2009 at 4:33 AM, Richard Kilmer wrote: This is how I would do it: class MyNewView < NSView def drawRect(rect) end end HotCocoa::Mappings.map :my_new_view => :"MyNewView" do defaults :frame => DefaultEmptyRect, :layout =>

Re: [MacRuby-devel] HotCocoa subclassing NSView

2009-02-17 Thread Richard Kilmer
This is how I would do it: class MyNewView < NSView def drawRect(rect) end end HotCocoa::Mappings.map :my_new_view => :"MyNewView" do defaults :frame => DefaultEmptyRect, :layout => {} def init_with_options(view, options) view.initWithFrame options.delete(:frame) end end Then i

Re: [MacRuby-devel] sub classing with hot cocoa

2008-12-03 Thread Richard Kilmer
class MyView < NSView include HotCocoa::Behaviors def drawRect(rect) #do something... end end That HotCocoa::Behaviors was what you were missing. On Dec 3, 2008, at 12:58 AM, John Shea wrote: Hi Ben, thanks for your answer. I tried that initially, but my subclass was having

Re: [MacRuby-devel] HotCocoa Part I

2008-12-02 Thread Richard Kilmer
On Dec 2, 2008, at 9:00 PM, Chris McGrath wrote: On 3 Dec 2008, at 00:45, Rich Morin wrote: At 01:27 + 12/3/08, Chris McGrath wrote: One thing I've been considering since watching your RubyConf presentation via confreaks is ... Just to be clear, Rich Kilmer is the HC developer that ma

Re: [MacRuby-devel] http/json/parser

2008-11-13 Thread Richard Kilmer
You can use NSXMLParser (its a SAX-style parser). I mapped it into HotCocoa with xml_parser: xml_parser(:file => "myfile.xml") do |parser| # set of Delegate blocks (see below) end.parse Delegate blocks: on_start_document on_end_document on_start_element { | element, namespace_uri, qualifie

Re: [MacRuby-devel] HotCocoa Part I

2008-11-12 Thread Richard Kilmer
On Nov 12, 2008, at 9:16 AM, Richard Kilmer wrote: All, As the main author of HotCocoa let me chime in on what I see its main purpose is. In a nutshell here is my 5 second primary definition: "HotCocoa is an idiomatic Ruby API that simplifies the configuration and wiring togeth

[MacRuby-devel] HotCocoa Part I

2008-11-12 Thread Richard Kilmer
All, As the main author of HotCocoa let me chime in on what I see its main purpose is. In a nutshell here is my 5 second primary definition: "HotCocoa is an idiomatic Ruby API that simplifies the configuration and wiring together of complex ObjC/Cocoa classes." I realize this will not be

Re: [MacRuby-devel] Added new Rake task - deploy

2008-11-11 Thread Richard Kilmer
Aimonetti wrote: w00t, this is really really nice Rich, I can't wait to try it. Thanks a lot. -Matt On Tue, Nov 11, 2008 at 12:33 AM, Richard Kilmer <[EMAIL PROTECTED]> wrote: All, I added a new rake task for HotCocoa - deploy To do this I also updated the Rakefile itself

[MacRuby-devel] Added new Rake task - deploy

2008-11-10 Thread Richard Kilmer
All, I added a new rake task for HotCocoa - deploy To do this I also updated the Rakefile itself. Now if you try and macrake one of your existing HotCocoa projects you may see this: Your Rakefile needs to be updated. Please copy the Rakefile from: /Library/Frameworks/MacRuby.framework/Vers

Re: [MacRuby-devel] PBI - macirb as a console, debugger, etc.

2008-10-28 Thread Richard Kilmer
On Oct 28, 2008, at 10:08 AM, Antonin Hildebrand wrote: Hi Richard, In 1.9, and thus MacRuby, RubyGems is enabled differently than in 1.8 and so thanks for pointing this out, so for a newbie, it is transparent if library sits in stdlib or is preinstalled as a macgem So if I had a gem name

Re: [MacRuby-devel] PBI - macirb as a console, debugger, etc.

2008-10-28 Thread Richard Kilmer
Just my $0.02. In 1.9, and thus MacRuby, RubyGems is enabled differently than in 1.8 and so you don't even have to do: require 'rubygems' All gems' lib paths are pushed on the LOAD_PATH at init time and versioning is still enabled through some magic constant_missing/ method_missing stuff