Re: [MacRuby-devel] Objects instantiated as anonymous class by Bindings mechanism

2010-06-17 Thread Wladj
as workaround i can create the hash via NSMutableDictionary.dictionary or in my case : temp = YAML::load( NSString.alloc.initWithData( fileWrapper.regularFileContents, encoding:NSString.defaultCStringEncoding)) @data = NSMutableDictionary.dictionary @data.setDictionary(temp) is a bug or a behav

[MacRuby-devel] Objects instantiated as anonymous class by Bindings mechanism

2010-06-17 Thread Wladj
Hi, i spent a little time with the problem i had some time ago, in effect there is a problem with bindings mechanism in MacRuby 0.6 : - create a new MacRuby Document based project - MyDocument.nib create a new ObjectController binded with File's Owner Content, model key path "dummy"

[MacRuby-devel] Anonymous class

2010-05-17 Thread Wladj
Hi, in a little macruby-cocoa app when i try to save a simple hash (attribute of a model class) inside the fileWrapperOfType method via Marshal.load( Marshal.dump(@model.data)) #deep copy , i get an error: `fileWrapperOfType:error:': can't dump anonymous class # (TypeError) i discover that th

Re: [MacRuby-devel] macruby and sqlite3 gem (Wladjmir)

2010-03-15 Thread Wladj
nch. I recommend to wait for the > next release if you want to use C extensions, and in the meantime, to use > something that does not rely on the C API (such as Objective-C frameworks > like CoreData). > > Laurent > > On Mar 13, 2010, at 4:13 AM, Wladj wrote: > >&g

[MacRuby-devel] macruby and sqlite3 gem

2010-03-13 Thread Wladj
Can someone help me to get sqlite3 gem working with macruby? > macirb irb(main):006:0> require 'rubygems' => true irb(main):007:0> require 'sqlite3' => true irb(main):008:0> db = SQLite3::Database.new("test.db") Segmentation fault or suggest me a viable other way or db to have simple db function