The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
RubyCocoa News

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Laurent Sansonetti

Posts: 134
Nickname: lrz
Registered: Jun, 2006

Laurent Sansonetti is a software engineer at Apple Computer and a longtime Ruby enthusiast.
RubyCocoa News Posted: Jan 24, 2007 2:34 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Laurent Sansonetti.
Original Post: RubyCocoa News
Feed Title: lrz's diary
Feed URL: http://www.chopine.be/lrz/diary/xml/rss/feed.xml
Feed Description: lrz's diary
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Laurent Sansonetti
Latest Posts From lrz's diary

Advertisement

Here is a quick status of what has been done very recently on the RubyCocoa project.

First, it's now possible to override or inject class methods. This was lacking for a while, and now you should be able to override an existing class method in a subclass or register a new class method into the Objective-C runtime. To do this we introduced a new API, objc_class_method, that works in the same way than objc_export. We also decided to rename the latter to objc_method to avoid confusion.

Eloy is working on a great feature: an RDoc generator for the Objective-C frameworks we support! Basically it's very simple, it converts the existing Apple documentation to RDoc-based files (HTML and RI). This is very excellent because you won't have to know anything about Objective-C to write RubyCocoa code now, as even the documentation is Ruby friendly. Check out Eloy's blog for more information.

Hisa-san added some support that should allow you to embed RubyCocoa as a plugin within another application. I didn't test it yet but I suspect we will need to embed the BridgeSupport metadata files within the RubyCocoa framework to make everything work.

Chris is working on a script that would inject the necessary IB metadata (outlets and actions) from a RubyCocoa source file to a given .nib file (necessary given that IB currently doesn't support Ruby). This is very cool and this would be even better if the process was triggered automatically (from an Xcode target for example).

What's new otherwise... well some very nasty bugs were discovered and fixed (a particuliar one was about Libffi closures returning C structures that were causing some memory corruption when called from Objective-C, and this was due to an optimization flag passed to the compiler - thanks a lot to Ronald Oussoren for the hint!). RubyCocoa.framework doesn't built against AppKit anymore (just Foundation), but it will load it if you require osx/cocoa (but not if you use osx/foundation). Also some refactoring has been done in the messaging code, which should now be more efficient. And there is also some support about pointers to boxed types.

Oh, I forgot, there is also an active IRC channel on freenode, #ruby-osx. Feel free to join and chat with us. Jean-Pierre also created an RSS feed out of the SVN repository so that you can follow the commit logs.

Enough said, let's prepare a new release now :-)

Read: RubyCocoa News

Topic: Getting ready to fly Previous Topic   Next Topic Topic: Blocks and Helpers, a Lovely Combination

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use