cocoa
Mac Ruby 0.5 Beta 1
Oct 11, 2009 19:23 filed in: Programming
The MacRuby team has just released their first beta of version 0.5. It has many really nice features namely because the use LLVM as opposed to YARV. Mac Ruby now has JIT and AOT (ahead of time) compilation, which means that you can distribute ruby binaries on the Mac. There is also an API for Grand Central Dispatch for efficient execution of blocks on multi-core machines. This milestone brings Ruby one step closer to being a first class citizen on the Mac platform and holds great promise.

Download it and check it out for yourself.

Download it and check it out for yourself.
0 Comments
Bidirectional Cocoa Bindings
Sep 24, 2009 20:51 filed in: Programming | Projects
If you have ever tried to bind two “model” objects together then you will have noticed that bindings are one-way. When calling bind on an object you are really indicating that you want that objects property to reflect changes in some other 'observable’ objects property. Not the reverse.
This is fine in most circumstances because we usually bind visuals control to our model. Apple has implemented the two-way logic for us. But what if you wanted to implement this type of ‘magic’ in your own custom views or if you wanted to bind two model objects together? In these cases, you will need to roll out your own bi-directional or two-way bindings. Here I present a simple way to achieve this.
Read More...
This is fine in most circumstances because we usually bind visuals control to our model. Apple has implemented the two-way logic for us. But what if you wanted to implement this type of ‘magic’ in your own custom views or if you wanted to bind two model objects together? In these cases, you will need to roll out your own bi-directional or two-way bindings. Here I present a simple way to achieve this.
Read More...
