Re: [MacRuby-devel] Need to Write Core Data Accessors in MacRuby?

2011-06-28 Thread Eloy Duran
Oops, thanks for the fix :) On 28 jun 2011, at 18:21, Robert Lowe wrote: > Value must be a pointer when passed > > value_to_pointer = Pointer.new(:object) > value_to_pointer.assign(value) > > Regards, > - Rob > > On 2011-06-28, at 12:08 PM, Eloy Duran wrote: > >> I have no experience with Co

Re: [MacRuby-devel] Need to Write Core Data Accessors in MacRuby?

2011-06-28 Thread Robert Lowe
Value must be a pointer when passed value_to_pointer = Pointer.new(:object) value_to_pointer.assign(value) Regards, - Rob On 2011-06-28, at 12:08 PM, Eloy Duran wrote: I have no experience with Core Data, but if you are looking to make repetitive work easy then don't forget about the metapr

Re: [MacRuby-devel] Need to Write Core Data Accessors in MacRuby?

2011-06-28 Thread Eloy Duran
That’s untested code btw. On Tue, Jun 28, 2011 at 6:08 PM, Eloy Duran wrote: > I have no experience with Core Data, but if you are looking to make > repetitive work easy then don't forget about the metaprogramming > possibilities with Ruby. Taking your example, you could create class > method lik

Re: [MacRuby-devel] Need to Write Core Data Accessors in MacRuby?

2011-06-28 Thread Eloy Duran
I have no experience with Core Data, but if you are looking to make repetitive work easy then don't forget about the metaprogramming possibilities with Ruby. Taking your example, you could create class method like the following: class Model def self.core_data_accessor(name) class_eval(%{

Re: [MacRuby-devel] Need to Write Core Data Accessors in MacRuby?

2011-06-28 Thread Robert Lowe
On 2011-06-28, at 11:55 AM, Shannon Love wrote: > I'm not to the point of wiring up the UI yet. I will employ bindings when I > do so but at the moment I am creating a complex data model using > NSManagedObject subclasses with lots of customized behaviors. I do this all > the time in Objective-

Re: [MacRuby-devel] Need to Write Core Data Accessors in MacRuby?

2011-06-28 Thread Shannon Love
I'm not to the point of wiring up the UI yet. I will employ bindings when I do so but at the moment I am creating a complex data model using NSManagedObject subclasses with lots of customized behaviors. I do this all the time in Objective-c but I am uncertain how to go about doing so in MacRuby.