Re: [MacRuby-devel] testing macruby/hotcocoa apps

2009-05-13 Thread Barry Wark
On Tue, May 12, 2009 at 3:26 PM, Jeremy Voorhis wrote: > I second the idea also. Tools like Squish have their place, but as a > solo/hobbyist developer, I'd much rather put some faith in Apple's > efforts to test that scrollbars scroll properly, buttons dispatch to > actions, etc. and focus on how

[MacRuby-devel] Accessing constants/enums

2009-05-13 Thread Łukasz Adamczak
Hi, After a few days smooth sailing and playing with MacRuby, I just hit a wall: How do I invoke something like this in MacRuby: [[NSAppleEventManager sharedAppleEventManager] setEventHandler:self andSelector:@selector(getUrl:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetUR

Re: [MacRuby-devel] Accessing constants/enums

2009-05-13 Thread Laurent Sansonetti
Hi Łukasz, On May 13, 2009, at 11:43 AM, Łukasz Adamczak wrote: Hi, After a few days smooth sailing and playing with MacRuby, I just hit a wall: How do I invoke something like this in MacRuby: [[NSAppleEventManager sharedAppleEventManager] setEventHandler:self andSelector:@selector(getUrl

Re: [MacRuby-devel] Key-value observing

2009-05-13 Thread Laurent Sansonetti
Hi Jeremy, That's a pretty good idea! Could you file a bug on the tracker so that we do not forget about it? Thanks, Laurent On May 12, 2009, at 10:18 AM, Jeremy Voorhis wrote: Hello, I've been learning Cocoa, Objective-C and macruby in tandem and I was just wondering, are there any plans

[MacRuby-devel] [MacRuby] #252: Support key-value observing via the attr_accessor family of methods

2009-05-13 Thread MacRuby
#252: Support key-value observing via the attr_accessor family of methods +--- Reporter: jvoor...@… | Owner: lsansone...@… Type: enhancement | Status: new

Re: [MacRuby-devel] Key-value observing

2009-05-13 Thread Jeremy Voorhis
I've created a ticket at https://www.macruby.org/trac/ticket/252. I might be wrong as I am still grokking the Objective-C runtime, but it seems to me that this should be easy to implement if attr_accessor and attr_writer generate the setKey: method first and then implement #key= in terms of setKey: