Re: [MacRuby-devel] NSUserDefaults and registerDefaults

2012-03-16 Thread Steve Clarke
Hi Erik, The following code works for me, though as far as I can see it's effectively the same as yours. The only difference might be that I run this code in rb_main.rb rather than after the app has finished launching. DBNAME_KEY='database_name' DEFAULTS = NSUserDefaults.standardUserDefaults

Re: [MacRuby-devel] NSUserDefaults and registerDefaults

2012-03-16 Thread Erik Lundqvist
Sean, Thank you, but that only demonstrates the bit I have working. What is not working for me is using registerDefaults. Thanks anyway :) On 16 March 2012 13:32, Sean Mateus wrote: > Hi Erik, > > here is an example app Matt wrote: >save: > https://github.com/mattetti/LiveTV/blob/master/TV

Re: [MacRuby-devel] NSUserDefaults and registerDefaults

2012-03-16 Thread Sean Mateus
Hi Erik, here is an example app Matt wrote: save: https://github.com/mattetti/LiveTV/blob/master/TVFrancaise/AppDelegate.rb#L249-253 read: https://github.com/mattetti/LiveTV/blob/master/TVFrancaise/AppDelegate.rb#L41-42 I hope this will help you -- Sean Mateus On Friday, March 16, 201