# RubyCocoa 0.11.1

**URL:** <https://www.ruby-forum.com/t/rubycocoa-0-11-1/105951>\
**Category:** Ruby\
**Created:** [June 4, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/rubycocoa-0-11-1/105951 "2007-06-04T22:15:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laurent\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/65b543/32.png) [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Post date:** [June 4, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/rubycocoa-0-11-1/105951/1 "2007-06-04T22:15:34Z")

</div>

Hi,

I am honored to announce the immediate release of RubyCocoa 0.11.1.

RubyCocoa is a Mac OS X framework that allows Cocoa programming in the  
object-oriented scripting language Ruby. In other words, it is a  
bridge that let you access Objective-C objects from Ruby, and  
vice-versa.

You can learn more about RubyCocoa on our new website:

[http://rubycocoa.sf.net](http://rubycocoa.sf.net)

This release fixes several bugs and regressions introduced by the  
previous release (0.11.0). Some features have been added though. All  
users are encouraged to upgrade.

Following are the release notes. Enjoy!

The RubyCocoa Team

Features:

- Added a convenience Ruby → Objective-C shortcut, to translate #foo=  
calls as #setFoo.
- Introduced OSX::Boxed.size, a convenience method to get the size of  
the boxed C type.
- Introduced ActiveRecordProxy#initWithRecord which returns a proxy  
for an existing record, and ActiveRecordProxy#initWithAttributes which  
creates a record with the attributes and returns a proxy.
- Added some convenience API to pack/unpack Pascal strings:  
String#unpack\_as\_pstring and Array#pack\_as\_pstring.
- New sample: Scripts/darkroom.rb.

Bugfixes:

- It’s now possible to generate the frameworks RDoc files using the  
latest hpricot version (0.5).
- Fixed a bug in the ActiveRecord binding, where #to\_ruby could be  
called on a nil object.
- Misc sample code updates.
- Fixed several bugs when passing already-allocated boxed structures  
as output arguments.
- Added setter support for \_C\_ARY types, fixed existing getter support.
- Fixed the ActiveRecordProxy#init method, it now takes no arguments.
- Do not enable direct-override for ruby-derived classes.
- In the ActiveRecord table view scaffold, when removing all table  
columns, make sure to iterate on a duplicate array to not mutate the  
original one during the enumeration.
- When auto-overriding Objective-C methods, before doing the override  
compare the methods arity and raise an exception if they are not the  
same.
- Fixed NSString#length to return the real number of characters.
- Fixed minor issues related to passed-by-reference arguments declared  
between regular arguments.
- Do not raise an exception when passing a String object as a C  
characters pointer (\_C\_CHARPTR).
- ActiveRecordTableView#scaffold\_columns\_for will now set  
NSTableColumn#identifier to the name of the attribute so you can use  
this to check which column it is.
- Added metaclass methods #find & method\_missing which handles  
#find\_by\_foo to the ActiveRecordProxy, which works as normal but  
returns proxies for the results.
- Optimized model class resolve method. Now also caches it.
- Removed method\_missing implementation in the active record proxy,  
instead we now define all the methods available.
- When converting Objective-C objects to Ruby, do not cache those  
being converted in an Objective-C callback (either FFI closure or  
NSInvocation), because there is no way to clear the cache after.
- Fixed NSApplication.run\_with\_temp\_app.
