Re: [MacRuby-devel] Nib issues on Snow Leopard

2009-09-17 Thread Alex Vollmer
On Sep 16, 2009, at Sep 16, 6:12 PM, Bjoern Paschen wrote: Hello Alex... I watched that peepcode screencast a couple of days ago and build the app from scratch with macruby 0.5. If it is of any help, I put the project directory on my ftp: ftp://witwenmacher.com/TwittRb.zip The app works

Re: [MacRuby-devel] Nib issues on Snow Leopard

2009-09-16 Thread Alex Vollmer
s not that much code). Cheers, Alex V. On Sep 16, 2009, at Sep 16, 1:51 AM, Matt Aimonetti wrote: Could you give us more info or even better the source code? Thanks, - Matt On Tue, Sep 15, 2009 at 8:15 PM, Alex Vollmer wrote: I'm trying to get a project that ran on MacRuby 0.4 and Le

[MacRuby-devel] Nib issues on Snow Leopard

2009-09-15 Thread Alex Vollmer
I'm trying to get a project that ran on MacRuby 0.4 and Leopard working with 0.5 on Snow Leopard. When I launch the app I get the following errors: 2009-09-15 20:08:08.954 TwittRb[87043:a0b] Unknown class 'TwittRbDelegate', using 'NSObject' instead. Encountered in Interface Builder file a

Re: [MacRuby-devel] The state of HotCocoa

2009-05-31 Thread Alex Vollmer
On May 29, 2009, at May 29, 10:47 PM, Matt Aimonetti wrote: I wrote a quick summary a couple of days ago: http://lists.macosforge.org/pipermail/macruby-devel/2009-May/001825.html Let me know if you have any questions. Oh good grief, your message was right in my mail. Well that's embarrassi

[MacRuby-devel] The state of HotCocoa

2009-05-29 Thread Alex Vollmer
Hey folks, Can anybody speak with some authority on the current state of HotCocoa? I seem to recall reading an email on the list that Rich and Matt were hacking on some new MVC hotness. Is that intended to replace HotCocoa, or just be an alternative? Cheers, Alex V. Musings & Notes

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

2009-05-12 Thread Alex Vollmer
On May 11, 2009, at May 11, 11:18 PM, Matt Aimonetti wrote: Before I get too excited, I'd like to hear what you guys think and what you believe you need to write better code? I love the concept, but have often found UI testing tools to be lacking. I think that's because in the past I was al

[MacRuby-devel] Modal sheet question

2009-05-04 Thread Alex Vollmer
I've been trying to port a small app I've written in MacRuby with a nib file over to HotCocoa. When the app launches a modal sheet is displayed asking the user for credentials. This is done by having both the main window and the credentials sheet in the MainMenu.nib file. In the application

Re: [MacRuby-devel] Getting the "Embed MacRuby" target working

2009-04-28 Thread Alex Vollmer
On Apr 27, 2009, at Apr 27, 9:44 PM, Matt Aimonetti wrote: Hi Alex, The "Embed MacRuby" isn't perfect yet. You have to first build your project normally and then built it with the proper target. I guess Laurent would accept a patch if you care to spend some time fixing this issue. - Mat

[MacRuby-devel] Getting the "Embed MacRuby" target working

2009-04-27 Thread Alex Vollmer
I've been trying to get my Xcode project setup correctly with the "Embed MacRuby" target. I've made the two-line change as suggested in tutorial and, unless I execute the target, I'm unable to load any Ruby classes. So then I made the "Embed…" target a pre-requisite of my application build.

Re: [MacRuby-devel] Out parameters with MacRuby

2009-04-26 Thread Alex Vollmer
On Apr 26, 2009, at Apr 26, 7:14 PM, Laurent Sansonetti wrote: http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html In the case of a C structure, you can call the #type class method on the struct class. $ macirb irb(main):001:0> framewor

Re: [MacRuby-devel] Out parameters with MacRuby

2009-04-26 Thread Alex Vollmer
On Apr 26, 2009, at Apr 26, 10:09 AM, rebotfc wrote: errorp = Pointer.new_with_type("@") result = NSXMLDocument.alloc.initWithData(data, options:NSXMLDocumentValidate, error:errorp) # access error errorp[0] Ah cool. Thanks for the response. Is there any documentation on the possible val

[MacRuby-devel] Out parameters with MacRuby

2009-04-26 Thread Alex Vollmer
Is it possible to use "out" parameters with MacRuby, such as NSError? In my particular case I'd like to capture errors that result from parsing XML with NSXMLDocument using the initWithData:options:error: method. I tried (naively) just instantiating an NSError instance and handing it to tha

Re: [MacRuby-devel] Using built-in ruby libraries in packaged applications.

2009-04-20 Thread Alex Vollmer
On Apr 20, 2009, at Apr 20, 5:51 PM, Laurent Sansonetti wrote: That is actually a pretty good idea, the default rb_main.rb could require an extra file if it exists in the resource directory, and the target would generate it. If anyone wants to contribute a patch I would commit it :-) Cool

Re: [MacRuby-devel] Using built-in ruby libraries in packaged applications.

2009-04-20 Thread Alex Vollmer
On Apr 20, 2009, at Apr 20, 1:32 PM, Laurent Sansonetti wrote: This is the right way to do it. The "Embed MacRuby" target configures the linking settings of your app but you still need to hack the load path in rb_main.rb to point it to the MacRuby stdlib. Here is another way: $:.map! { |x|

[MacRuby-devel] Using built-in ruby libraries in packaged applications.

2009-04-19 Thread Alex Vollmer
I have a bit of code that uses the Ruby base64 library and I would like to package the MacRuby framework into my application. I've added the "Embed MacRuby" target to my build and the MacRuby framework shows up properly in my application's contents directory. The problem is that when the pr

[MacRuby-devel] The "right" way to use gems

2009-04-17 Thread Alex Vollmer
One question I have is what the proper expectations are for using Ruby gems within a Macruby application. For example, I wanted to use the HTTParty gem for some web service processing since it provides a nice, succinct interface. However the gem won't load in MacRuby because of an issue wit

[MacRuby-devel] Questions about Threads

2009-04-17 Thread Alex Vollmer
Hi folks, Could someone shed a little light on how threads work in MacRuby? For example, if I do this: Thread.new do 10.times do puts "Hi" sleep 2 end end Does this run as a NSThread instance? Also does the MacRuby runtime have the Global Interpreter Lock or are MacRuby threads