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
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
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.
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))
>
>
>
> _
> 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
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
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
--
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-
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
> 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
10 matches
Mail list logo