Re: [MacRuby-devel] Core Data brain-o

2011-03-21 Thread Joshua Ballanco
Just to clarify the reason behind this, in Ruby 1.9 { foo:bar } translates into { :foo => bar }. Since you want a has using constants as keys, the shorthand notation doesn't work. In other words, your first example translates to: psc_options = { :NSMigratePersistentStoresAutomaticallyOption => NSN

[MacRuby-devel] Core Data brain-o

2011-03-19 Thread Morgan Schweers
Greetings, I was trying to set up automatic migration, and did this brain-o, which will be obvious to most folks, but stumped me for a little bit: psc_options = { NSMigratePersistentStoresAutomaticallyOption:NSNumber.numberWithBool(true), NSInferMappingModelAutomaticallyOption:NSNumber.n