Re: [MacRuby-devel] command line cocoa framework

2010-09-22 Thread Clay Bridges
> I wrote my piece in nu, but I'd love some other submissions, in case > macrake had support for building frameworks, or if somebody had a rake > file to do it. Rakefile sorted. That was fast. ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge

[MacRuby-devel] command line cocoa framework

2010-09-21 Thread Clay Bridges
Hey guys, I created a project to demo creating a framework from the command-line. http://github.com/diffengr/CommandLineCocoaFramework I wrote my piece in nu, but I'd love some other submissions, in case macrake had support for building frameworks, or if somebody had a rake file to do it. Thank

Re: [MacRuby-devel] Debugging API... standalone? documented? where?

2010-09-18 Thread Clay Bridges
> Note that this API is to control the MacRuby debugger. My mistake, I thought MacRuby was using some debugger-fu that would be more generally applicable. Thanks Clay ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosf

[MacRuby-devel] Debugging API... standalone? documented? where?

2010-09-17 Thread Clay Bridges
Like some of you, I keep tabs on MacRuby and nu. I showed the nu guys this quote from the 0.6 release: "An interesting feature of the debugger is that it has been abstracted into a simple Objective-C API, of which macrubyd is just one client. In the future we might see other clients." [1] Tim Bur

Re: [MacRuby-devel] rescue NSException?

2009-09-09 Thread Clay Bridges
If it matters, I'm on SL. cb ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] bundle or dylib

2009-09-09 Thread Clay Bridges
Does anyone have an answer to this? Are the Objective-C "bundles" that MacRuby loads in require statements really dylibs? Are they real bundles? Thanks Clay ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/ma

[MacRuby-devel] rescue NSException?

2009-09-09 Thread Clay Bridges
Does MacRuby 0.5 rescue Objective-C NSExceptions? e.g. begin # call to Objective C dynlib here, raises NSException rescue # should this get called? end Thanks Clay ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macos

[MacRuby-devel] bundle or dylib

2009-09-01 Thread Clay Bridges
Hi gang, I was checking out the potential changes to the website, particularly create-an-objective-c-bundle.txt, and that inspired me to ask a longstanding question. I know very little about this stuff, but from what I could discern, it looks like MacRuby is loading what are technically dylibs, an

Re: [MacRuby-devel] Monkey patching Objective-C classes

2009-08-21 Thread Clay Bridges
Forgive my caveman-programmer terminology, but it seems to overwrite the class symbol. Extending Laurent's example (kind of): gort:~ clay$ macruby -e "p NSPredicate.object_id; p NSPredicate.methods(false,true); class NSPredicate; def hey;end; end; p NSPredicate.object_id; p NSPredicate.methods(fal

Re: [MacRuby-devel] Monkey patching Objective-C classes

2009-08-21 Thread Clay Bridges
On Fri, Aug 21, 2009 at 3:25 PM, Laurent Sansonetti wrote: > I see, I haven't tried with 0.4. Maybe the problem is fixed in trunk :-) My bad, I try to specify. Yes, it's 0.4. Thanks Clay ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org

[MacRuby-devel] Monkey patching Objective-C classes

2009-08-21 Thread Clay Bridges
main):012:0> Bar.object_id => 4298834304 irb(main):013:0> class Bar irb(main):014:1> def drink irb(main):015:2> p 'tasty!' irb(main):016:2> end irb(main):017:1> end => nil irb(main):018:0> Bar.object_id => 4298834304 Thanks Clay Br

Re: [MacRuby-devel] forwardingTargetForSelector vs. MacRuby 0.4

2009-08-21 Thread Clay Bridges
n do to help. * The probably-too-frequent question: Any idea if this will be fixed in 0.5? Thanks Clay Bridges ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

[MacRuby-devel] forwardingTargetForSelector vs. MacRuby 0.4

2009-08-15 Thread Clay Bridges
e (among other things):   candy_test.rb:7:in `': undefined method `flavor' for # (NoMethodError)   rake aborted! So, what am I doing wrong? Thanks, Clay Bridges ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

[MacRuby-devel] macruby-bundle-example

2009-08-15 Thread Clay Bridges
Hi all, When I was first figuring out how to call my ObjC classes from MacRuby, I greatly benefited from Pieter de Bie's excellent minimal, xcode-free example of this, macruby-bundle-example. I spiffed it up a bit. Here's the github link: http://github.com/diffengr/macruby-bundle-example. It mig

Re: [MacRuby-devel] How to use custom C struct's?

2009-08-05 Thread Clay Bridges
Thank you, Laurent. That was *incredibly* helpful and kind of you, and worked perfectly. Being able to add MapPoint#to_a and MapPoint[row,col] methods was the "oh, ruby, you *are* magic" moment of it all. I was going to try to pay it back by putting it up on a wiki, but Jordan beat me to it. I LOL

Re: [MacRuby-devel] How to use custom C struct's?

2009-08-05 Thread Clay Bridges
> Yes, use RubyCocoa I'm afraid I'm already hooked. ;) If it comes down to it, I've already put a testing-only category wrapper around one method, e.g. #import "Cell.h" @interface Cell (TestUtil) @property (readonly) NSArray* mapPointAsArray; @end @implementation Cell (TestUtil) @dynamic ma

[MacRuby-devel] How to use custom C struct's?

2009-08-05 Thread Clay Bridges
. Before I started a deep-dive on the MacRuby source, and/or the standard ruby way to handle this sort of thing, I thought I would ask a couple of questions: 1) Any easy advice? 2) Is this different in MacRuby than in ruby proper? 3) Any pointers into the MacRuby source that might h