Re: [MacRuby-devel] Fail to access kABFirstNameProperty

2011-01-15 Thread Daniel Lopes
Thank Matt, I thought there was any compatible layer or trick to make objc constants work as ruby constants. Thanks a lot again (and thanks for the book too). On 16/01/2011, at 01:33, Matt Aimonetti wrote: > Actually I realized I didn't put the full Address Book example online yet, > but thi

Re: [MacRuby-devel] Fail to access kABFirstNameProperty

2011-01-15 Thread Matt Aimonetti
Actually I realized I didn't put the full Address Book example online yet, but this section shows how to use method missing to write a nicer wrapper for the AddressBook framework: http://ofps.oreilly.com/titles/9781449380373/ch03.html#_method_missing I hope it helps, - Matt On Sat, Jan 15, 2011

Re: [MacRuby-devel] Fail to access kABFirstNameProperty

2011-01-15 Thread Matt Aimonetti
Constants in Ruby start by an uppercase, rename kABFirstNamePropery => KABFirstNamePropery Also I have an address book example in my book you can see freely online. - Matt Sent from my iPhone On Jan 15, 2011, at 19:24, Daniel Lopes wrote: > Hello, > > I'm playing with AddressBook framework

[MacRuby-devel] Fail to access kABFirstNameProperty

2011-01-15 Thread Daniel Lopes
Hello, I'm playing with AddressBook framework but I can't figure how access the predefined constants. For example, in my ViewControler I do like below but XCode can't find kABFirstNamePropery. I already added framework 'AddressBook' in my rb_main.rb: def awakeFromNib notificationCenter =

Re: [MacRuby-devel] Fail

2009-09-02 Thread Matt Aimonetti
Hey Wayne, I didn't check your log but I would recommend to do: $ rake clean $ rake $ DESTDIR=~/.rvm/macruby-head rake install That should output all the files to your folder and you will just need to move them were needed. Let me know if that works for you (or not) - Matt On Wed, Sep 2, 200

[MacRuby-devel] Fail

2009-09-02 Thread Wayne Seguin
Hello everyone, Background: I am trying to add MacRuby support to a tool called rvm "Ruby Version Manager" The commands I am using to build and install MacRuby are currently (from rake -T): rake macruby:build framework_instdir=~/.rvm/macruby-head framework_name=/macruby-head --trace ra