Re: [MacRuby-devel] Overriding +autosavesInPlace

2011-10-08 Thread Sven A. Schmidt
Yes, that's what I was suspecting and the "self." prefix was exactly what I was missing :) (And I just noticed "YES" is not available in MacRuby.) The following works then: def self.autosavesInPlace return true end Thanks, Sven On Oct 8, 2011, at 17:36, Keith Gautreaux wrote: > I'm no

Re: [MacRuby-devel] Overriding +autosavesInPlace

2011-10-08 Thread Keith Gautreaux
I'm not a Macruby expert and I don't know anything about Cocoa, particularly as it relates to new Lion features such as autosave, but the example code you gave is defining an instance method, not a class method. To override a class method you would need to do something like: class MyDocument < NS

[MacRuby-devel] Overriding +autosavesInPlace

2011-10-08 Thread Sven A. Schmidt
Hi all, I'm trying to add autosave and versions to an application and as far as I can tell from the docs it should be as simple as overriding +(BOOL)autosavesInPlace to return YES from my core data document application. So what I have is essentially: class MyDocument < NSPersistentDocument

Re: [MacRuby-devel] REXML UTF-8 Encoding not found

2011-10-08 Thread Watson
Hi > https://github.com/ferrous26/MacRuby/commit/e4525fc4f9d91ffbad155340b99710e750aef5b7 I merged Mark's patch. This problem would be fixed with MacRuby nightly build. Thanks. 2011/10/8 Mark Rada : > It seems that I lied a little, the commit where I made the change is here: > > https://github.