Re: [MacRuby-devel] programatic binding (undefined bind method on NSTextField)

2011-09-27 Thread Sven A. Schmidt
Have you got the right signature? Looking at http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html I see only bind:toObject:withKeyPath:options: and on Lion with macruby_nightly-2011-09-23 I

[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] Overriding +autosavesInPlace

2011-10-08 Thread Sven A. Schmidt
ethod you would need to do something like: > > class MyDocument < NSPersistentDocument > > ... > > def self.autosavesInPlace >return YES > end > end > > There are other ways of defining class methods but this is the easiest > when you just have one method.

Re: [MacRuby-devel] NSInvocationOperation usage Segmentation fault

2011-10-11 Thread Sven A. Schmidt
nitWithTarget Foo.new, selector: > 'bar', object: nil > > queue = NSOperationQueue.alloc.init > queue.addOperation(operation) > > # run the main loop for 2 seconds > NSRunLoop.currentRunLoop.runUntilDate(NSDate.dateWithTimeIntervalSinceNow(2.0)) > > > > _

Re: [MacRuby-devel] NSInvocationOperation usage Segmentation fault

2011-10-11 Thread Sven A. Schmidt
> MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel -- Dr. Sven A. Schmidt abstracture GmbH & Co. KG Wilhelm-Theodor-Römheld-Straße 28 55130 Mainz Fon +49 6131

Re: [MacRuby-devel] Macruby+Cocoa skillswap

2011-10-15 Thread Sven A. Schmidt
Hi Alex, I'd be happy to try and help out as time permits. I'm in a similar position as you on the opposite end: I've built some Mac and iOS apps and briefly played with ruby and ruby on rails a few years ago. MacRuby finally made me dive in deeper and learn more about ruby. I'm enjoying it a l

Re: [MacRuby-devel] thread-safety and collections in macruby

2011-10-20 Thread Sven A. Schmidt
to search, I'd pull it up, but it > isn't and I'm too lazy. :) > > - Jordan > > ___ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel --

[MacRuby-devel] Mailing list hosting (was: thread-safety and collections in macruby)

2011-10-22 Thread Sven A. Schmidt
In trying to work around this, I've turned off mails from the list and subscribed to the group's RSS feed but that makes posting difficult as you have to copy-paste stuff from the google group to a mail reply. Cheers, Sven -- Dr. Sven A. Schmidt abstracture GmbH & Co. KG Wilhelm-

Re: [MacRuby-devel] Create new Core Data Instances

2011-11-14 Thread Sven A. Schmidt
Hi Timo, > a) Is it really THAT complicated to create an instance of MyEntity and set > the attribute? I'm coming from the Rails/ActiveRecord world where this could > easily be done with a single line of code (including saving the instantiated > object): MyEntity.new(:attribute1 => "Test").save

Re: [MacRuby-devel] Building MacRuby with GNU readline support

2011-12-26 Thread Sven A. Schmidt
> I'm trying to get vi-editing mode support in macirb, but it looks this is not > going to work without custom build of MacRuby with GNU readline? If you want to avoid building macruby with rl support could try rlwrap in conjunction with macirb (http://utopia.knoware.nl/~hlub/rlwrap/). You can