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] Help with error message -- MacRuby app to be submitted to Mac App Store

2011-01-15 Thread Juan C . Méndez
Hi Laurent Thanks for the quick reply.  I had checked the FAQ out, but I'm not sure I'm doing the right thing… The FAQ says "When including bundles inside your app, it's particularly important that you ensure they have unique bundle identifiers that match your company's naming scheme" So even if

Re: [MacRuby-devel] Help with error message -- MacRuby app to be submitted to Mac App Store

2011-01-15 Thread Laurent Sansonetti
Hi Juan, You will probably get better feedback if you ask on http://devforums.apple.com. I just searched and found that this problem is actually covered in question #10 of the official FAQ: https://devforums.apple.com/thread/75228?tstart=0 HTH, Laurent On Jan 15, 2011, at 4:56 PM, Juan C. Mé

[MacRuby-devel] Help with error message -- MacRuby app to be submitted to Mac App Store

2011-01-15 Thread Juan C . Méndez
Dear all I hope someone in this list can help. I'm submitting an application to the Mac App Store. I can compile, embed the MacRuby framework, and archive the application for submission. When I try to validate it, I get the error -Package "com.mycompany.myapp": Bundle at "MyApp.app/Conte

Re: [MacRuby-devel] [MacRuby] #1112: Allowing pointers to be created and initialised directly with an integer

2011-01-15 Thread Dave Baldwin
Thanks, works a treat. Dave. On 13 Jan 2011, at 02:15, MacRuby wrote: > #1112: Allowing pointers to be created and initialised directly with an > integer > +--- > Reporter: dave.baldwin@… |Owner: lsa