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.
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
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.
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
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
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
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
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
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.
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
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 =>
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
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
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
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
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
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
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
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
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
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
21 matches
Mail list logo