Re: [MacRuby-devel] trunk status update

2009-10-06 Thread s.ross
Hello- On Oct 5, 2009, at 10:48 PM, Vincent Isambart wrote: [Switching to process 1982] Running… 2009-10-05 22:29:51.141 IStockCocoa[1982:80f] Error loading /Library/InputManagers/GearsEnabler.old/GearsEnabler.bundle/ Contents/MacOS/GearsEnabler: dlopen(/Library/InputManagers/GearsEnabler.old/

Re: [MacRuby-devel] trunk status update

2009-10-06 Thread s.ross
Whoa, thanks for the help with the Gears enabler. It didn't relate to the problem. It was, as is most often the case, user error on my part. Reduced: class ControllerBase < NSObject end class TitleController < ControllerBase @ControllerBase.setTextColor(NSColor::redColor) # <= yeah, right.

[MacRuby-devel] MacRuby tips

2009-10-06 Thread Matt Aimonetti
Because Googling for MacRuby issues can still be quite challenging, I decided to start blogging about small things that might be useful to others. My first post is about embedding a custom font into your application and then use it on a text field or somewhere else: http://merbist.com/2009/10/06/m

[MacRuby-devel] [MacRuby] #364: priority queue program crashes MacRuby

2009-10-06 Thread MacRuby
#364: priority queue program crashes MacRuby -+-- Reporter: jordan.breed...@…| Owner: lsansone...@… Type: defect | Status: new Priority: blocker

Re: [MacRuby-devel] trunk status update

2009-10-06 Thread Laurent Sansonetti
Hi Ross, The SIGABRT is definitely not intended, there is surely a bug there, probably 32-bit only :) I tried to reproduce it here without success $ arch -i386 macruby -e "@foo.bar" -e:in `': undefined method `bar' for nil:NilClass (NoMethodError) It would be awesome if you could extract th

Re: [MacRuby-devel] MacRuby tips

2009-10-06 Thread Laurent Sansonetti
Very cool Matt! Maybe we should move these tips to the macruby.org website (as "recipes") at one point. http://www.macruby.org/documentation.html Laurent On Oct 6, 2009, at 10:50 AM, Matt Aimonetti wrote: Because Googling for MacRuby issues can still be quite challenging, I decided to st

Re: [MacRuby-devel] MacRuby tips

2009-10-06 Thread Matt Aimonetti
Sounds good, as soon as I have a nice collection, I'll package them in recipes. By the way, anyone faced a problem they couldn't solve? Or maybe there is a specific topic you would like me/someone else to cover? - Matt On Tue, Oct 6, 2009 at 11:48 AM, Laurent Sansonetti wrote: > Very cool Matt!

Re: [MacRuby-devel] trunk status update

2009-10-06 Thread s.ross
I'll try when I'm on the ground :) Hunted and pecked from my iPhone On Oct 6, 2009, at 11:47 AM, Laurent Sansonetti wrote: Hi Ross, The SIGABRT is definitely not intended, there is surely a bug there, probably 32-bit only :) I tried to reproduce it here without success $ arch -i386 m

Re: [MacRuby-devel] MacRuby tips

2009-10-06 Thread Niket Patel
On Oct 7, 2009, at 12:24 AM, Matt Aimonetti wrote: By the way, anyone faced a problem they couldn't solve? Or maybe there is a specific topic you would like me/someone else to cover? Compiling MacRuby was lot harder when last I checked. :-) Specially on 32 bit leopard. Then I give up. Wa

Re: [MacRuby-devel] MacRuby tips

2009-10-06 Thread Matt Aimonetti
That's why we provide you with nightly builds: http://www.macruby.org/downloads.html :) While this is indeed something a bit challenging, most developers shouldn't have to do it and therefore I don't think a recipe is really needed. (you basically just have to follow the readme). Anything else any

Re: [MacRuby-devel] MacRuby tips

2009-10-06 Thread Josh Ballanco
Hey Matt, Something I'm working on is writing a Framework in Xcode, and using MacRuby to test it. I'm running into some issues that I'm trying to chase down (segfaults with bacon when loading frameworks), but there were enough gottchas that I think this would make for a good little recipe

Re: [MacRuby-devel] MacRuby tips

2009-10-06 Thread Niket Patel
Thanks, But build for snow leopard only. I'm still on Leopard. I'm not saying recipe is needed for this topic, just mentioning it is really hard and unpredictable on 32 bit system. Mainly because most developers working on 64 bit snow leopard. Btw, Blogging on small stuffs that can help to u

Re: [MacRuby-devel] MacRuby tips

2009-10-06 Thread Matt Aimonetti
Very good point about Leopard. Maybe Vincent can shine in since he's still on Leopard. My guess is that the beta/rc1 will be built for leopard/snow leopard. What kind of problems did you have while trying to build from trunk? FYI, Instead if doing a LLVM svn update, It turned out easier to

Re: [MacRuby-devel] Problems with return code from sheet (possible regression)

2009-10-06 Thread Laurent Sansonetti
Hi Michael, It's actually a well-known bug. MacRuby trunk doesn't honor the sel_of_type BridgeSupport attribute, therefore your sheet callback is registered to the runtime with the default signature (where all arguments and return value are Objective-C objects), and later it fails to conv

[MacRuby-devel] MacRuby on iPhone

2009-10-06 Thread Антон Журавскій
Hi all, I know most of you are 100% pissed off by this topic, but does anybody work on porting MacRuby to iPhone? What are main issues around that (if any)? And do we have a chance to be alive when it finally gets there? I'm personaly very excited by Ruby in general and MacRuby in particu

Re: [MacRuby-devel] MacRuby on iPhone

2009-10-06 Thread Laurent Sansonetti
Hi Anton, It's more complicated than that. It's basically a 2 goals target: 1) finishing the AOT compiler 2) emulating garbage collection I work on 1) heavily. AFAIK nobody started working on 2). The project is free software by the way, so anyone can hack on the source code. If you won't wan

Re: [MacRuby-devel] MacRuby on iPhone

2009-10-06 Thread Антон Журавскій
Hi Laurent, So I believe I will at least try to work out something re 2). The only issue that might emerge is that even if I end up with something working, it would be great to be checked by somebody as I'm not a proficient C developer (however, I wrote some stuff in C, C++ and Objective-

[MacRuby-devel] BridgeSupport Question

2009-10-06 Thread Jordan Breeding
I have a question about whether I am seeing a bug in BridgeSupport or not. I am running Mac OS X 10.6.1 and have a custom framework that has some categories for Foundation/Cocoa classes. The following are the problem I noticed when using gen_bridge_metadata: 1) I have to include Cocoa/Coco

Re: [MacRuby-devel] MacRuby on iPhone

2009-10-06 Thread Laurent Sansonetti
Hi Anton, Great! So, since autozone doesn't exist on the iPhone, we must emulate it. First, we make sure all memory allocations are done from the default malloc zone. Second, we need to appropriately retain/release/ autorelease Objective-C objects (as an example, if an object becomes an in

Re: [MacRuby-devel] BridgeSupport Question

2009-10-06 Thread Laurent Sansonetti
Hi Jordan, You should submit BridgeSupport problems to: http://bugreporter.apple.com/ The developer will deal with them there. Laurent On Oct 6, 2009, at 1:43 PM, Jordan Breeding wrote: I have a question about whether I am seeing a bug in BridgeSupport or not. I am running Mac OS X 10.6.

Re: [MacRuby-devel] BridgeSupport Question

2009-10-06 Thread Jordan Breeding
So does it sound like a legitimate problem? I just didn't want to take up my time and developer time at Apple if I was just doing something stupid. I ran it like this: "gen_bridge_metadata -f ./JBBAdditions.framework - F final --64-bit -o ./JBBAdditions.framework/Resources/BridgeSupport/ JB

Re: [MacRuby-devel] MacRuby on iPhone

2009-10-06 Thread Антон Журавскій
Hi Laurent, Wow, thanks, you gave me a fair amount of directions – many thanks. I will start digging into it and let you know as I advance. I will start with malloc then. Re retain/release – this seems to be a good and quite straightforward approach, but I believe there will be issues lik

Re: [MacRuby-devel] BridgeSupport Question

2009-10-06 Thread Laurent Sansonetti
Hi Jordan, I don't know for 1), but you should probably pass -c "-framework Cocoa". For 2) it's totally expected, the file only contains non- introspectable APIs. It lists -jbb_isEmpty because the method returns BOOL which needs to be annotated because it shares the same runtime encoding as

Re: [MacRuby-devel] BridgeSupport Question

2009-10-06 Thread Jordan Breeding
Thanks, that clears up a few things. Jordan On Oct 06, 2009, at 16:05, Laurent Sansonetti wrote: Hi Jordan, I don't know for 1), but you should probably pass -c "-framework Cocoa". For 2) it's totally expected, the file only contains non- introspectable APIs. It lists -jbb_isEmpty becaus

Re: [MacRuby-devel] MacRuby tips

2009-10-06 Thread Matt Aimonetti
Josh, that's a great idea! Testing Cocoa using MacRuby is something that I'm sure a lot of CocoaHeads will love to do. I'd be glad to help you out. Did you see my recipe on writing your own framework/bundle for macruby? http://www.macruby.org/recipes/create-an-objective-c-bundle.html - Matt On

Re: [MacRuby-devel] Problems with return code from sheet (possible regression)

2009-10-06 Thread Laurent Sansonetti
FYI, the problem should (in theory) be fixed in r2741. Laurent On Oct 6, 2009, at 1:28 PM, Laurent Sansonetti wrote: Hi Michael, It's actually a well-known bug. MacRuby trunk doesn't honor the sel_of_type BridgeSupport attribute, therefore your sheet callback is registered to the runtime

[MacRuby-devel] [MacRuby] #365: nil.setStringValue causes SIGABRT

2009-10-06 Thread MacRuby
#365: nil.setStringValue causes SIGABRT ---+ Reporter: cwdi...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major | Milestone

Re: [MacRuby-devel] [MacRuby] #365: nil.setStringValue causes SIGABRT

2009-10-06 Thread MacRuby
#365: nil.setStringValue causes SIGABRT ---+ Reporter: cwdi...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major | Milestone

Re: [MacRuby-devel] [MacRuby] #294: Experimental: EmbeddedMacRuby example crashes

2009-10-06 Thread MacRuby
#294: Experimental: EmbeddedMacRuby example crashes -+-- Reporter: illenber...@…|Owner: lsansone...@… Type: defect | Status: closed Priority: major

Re: [MacRuby-devel] [MacRuby] #138: macgem not working for me

2009-10-06 Thread MacRuby
#138: macgem not working for me -+-- Reporter: n...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5

Re: [MacRuby-devel] [MacRuby] #365: nil.setStringValue causes SIGABRT

2009-10-06 Thread MacRuby
#365: nil.setStringValue causes SIGABRT ---+ Reporter: cwdi...@… |Owner: lsansone...@… Type: defect | Status: closed Priority: major |Milest