[MacRuby-devel] [feature request] trace stack

2008-11-09 Thread Matt Aimonetti
Hi, It would be great to be able to see a full stack trace/log when running a macruby app. It would also be nice to be able to output to the log directly from Ruby. I guess, it would be even better if you could decide to choose how to log (STDOUT or a file) so you could debug deployed apps by ask

[MacRuby-devel] [feature request] core data API

2008-11-09 Thread Matt Aimonetti
I need to be able to store and retrieve data between app runs. Having a simple API to access Core Data or creating a Core Data DataMapper adapter would be awesome. I guess the alternative would be to package a sqlite3 ruby gem compiled for OSX. -Matt __

[MacRuby-devel] [feature request] open url in browser

2008-11-09 Thread Matt Aimonetti
Here is what I had to do after Laurent showed me how to open an URL in the browser: NSWorkspace.sharedWorkspace.openURL(NSURL.URLWithString("http://google.com";) I wish this would be wrapped in a simpler way. open_url_in_browser("http://google.com";) open_file_in_browser("./resources/schedule.ht

Re: [MacRuby-devel] [feature request] core data API

2008-11-09 Thread Matt Aimonetti
se DM with sqlite, without CoreData adding an extra layer of > abstraction. > This works in RubyCocoa, so except for maybe some incompatibilities with > 1.9/MacRuby > it should work great as well. > > Eloy > > > On 9 nov 2008, at 10:29, Matt Aimonetti wrote: > > I need

Re: [MacRuby-devel] [feature request] open url in browser

2008-11-09 Thread Matt Aimonetti
ght use this method. > But my point is that MacRuby & HotCocoa should not teach the users how to > _not_ use Cocoa, but simply provide > shortcuts for the majority of simpler cases. > > Eloy > > On 9 nov 2008, at 10:41, Matt Aimonetti wrote: > > > Here is

[MacRuby-devel] can't build trunk

2008-11-09 Thread Matt Aimonetti
[EMAIL PROTECTED] trunk]$ rake --trace (in /Users/mattetti/src/MacRuby/trunk) ** Invoke default (first_time) ** Invoke all (first_time) ** Invoke macruby (first_time) ** Invoke macruby:build (first_time) ** Invoke macruby:dylib (first_time) ** Invoke rbconfig (first_time) ** Invoke miniruby (first_

Re: [MacRuby-devel] [feature request] open url in browser

2008-11-09 Thread Matt Aimonetti
: On 9 nov 2008, at 16:19, Matt Aimonetti wrote: hmm I guess I disagree but since I just got started with MacRuby and don't know Cocoa I might be totally wrong. Yes, this is what I thought too when first starting with Cocoa in RubyCocoa, but I was very wrong. Most helpful docs/reference

Re: [MacRuby-devel] can't build trunk

2008-11-09 Thread Matt Aimonetti
rash log from > Console.app? > > Thanks, > Laurent > > > On Nov 9, 2008, at 10:24 AM, Matt Aimonetti wrote: > > [EMAIL PROTECTED] trunk]$ rake --trace >> (in /Users/mattetti/src/MacRuby/trunk) >> ** Invoke default (first_time) >> ** Invoke all (first_time)

Re: [MacRuby-devel] Hotcocoa design ethos [was Re: [feature request] open url in browser]

2008-11-09 Thread Matt Aimonetti
By the way, I did a quick demo of HotCocoa for Matz and he was pretty impressed. He even said: "I will have to play with that when I will buy a Mac ;)" First I was totally shocked(in a good way) to hear that Matz is considering buying a Mac and then I was like wow, if Matz sees something in Ho

Re: [MacRuby-devel] Added new Rake task - deploy

2008-11-10 Thread Matt Aimonetti
w00t, this is really really nice Rich, I can't wait to try it. Thanks a lot. -Matt On Tue, Nov 11, 2008 at 12:33 AM, Richard Kilmer <[EMAIL PROTECTED]> wrote: > All, > > I added a new rake task for HotCocoa - deploy > > To do this I also updated the Rakefile itself. Now if you try and macrake

Re: [MacRuby-devel] can't build trunk

2008-11-11 Thread Matt Aimonetti
; idea (as removing anything bundled with the OS), because some OS > functionality relies on it. > > Laurent > > On Nov 11, 2008, at 6:45 AM, Matt Aimonetti wrote: > > Didn't work. > > I believe the problem is that I removed MacOSX default Ruby install in > favor

Re: [MacRuby-devel] can't build trunk

2008-11-11 Thread Matt Aimonetti
/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31 /opt/local/bin/rake:19:in `load' /opt/local/bin/rake:19 -Matt On Tu

Re: [MacRuby-devel] Added new Rake task - deploy

2008-11-11 Thread Matt Aimonetti
also wonder whether it makes sense to add 'package' or something as a > rake task that takes the deployed .app and creates a dmg and places it > inside of it for redistribution. Make sense? > > Best, > > Rich > > On Nov 11, 2008, at 1:03 AM, Matt Aimonetti wrote: >

Re: [MacRuby-devel] can't build trunk

2008-11-11 Thread Matt Aimonetti
it looks like it is not. > > I will try to reproduce it here. In the meantime I suspect that > removing /Library/Frameworks/MacRuby.framework should make it disappear. > > Laurent > > On Nov 9, 2008, at 11:42 PM, Matt Aimonetti wrote: > > I just did: > > $ /opt/local

Re: [MacRuby-devel] can't build trunk

2008-11-11 Thread Matt Aimonetti
to use macrake I would need to be able to build MacRuby first ;) -Matt On Tue, Nov 11, 2008 at 7:11 PM, Jordan K. Hubbard <[EMAIL PROTECTED]> wrote: > > On Nov 11, 2008, at 1:28 PM, Matt Aimonetti wrote: > > booh I re added Ruby and Gem (I just had renamed them ruby.orig and

Re: [MacRuby-devel] can't build trunk

2008-11-11 Thread Matt Aimonetti
ady some precedent > for using rake itself somewhat sparingly during the MacRuby bootstrap > process and then switching immediately to macrake.. > - Jordan > > > On Nov 11, 2008, at 4:46 PM, Matt Aimonetti wrote: > > to use macrake I would need to be able to build MacRuby first

Re: [MacRuby-devel] can't build trunk

2008-11-11 Thread Matt Aimonetti
to build the HotCocoa >> stuff and can't just use "rake" for this, so there's already some precedent >> for using rake itself somewhat sparingly during the MacRuby bootstrap >> process and then switching immediately to macrake.. >> - Jordan >> >> &g

[MacRuby-devel] Ruby debugger

2008-11-11 Thread Matt Aimonetti
I wanted to debug Rich's new tasks and by reflect I added the following code to my Rakefile: require "ruby-debug" debugger macrake died on the require telling me that the lib couldn't be required. I tried to do macgem install ruby-debug but it segfaulted big time: /Library/Frameworks/MacRuby.f

Re: [MacRuby-devel] PBI - MacRuby aux Fines Merbs...

2008-11-11 Thread Matt Aimonetti
Merb <3 MacRuby During RubyConf, Laurent, Yehuda, Rich and myself were talking about how to work closer. We were thinking about maybe running Merb on MacRuby so we could introspect a dev app and see what's going on. A bit like the iPhone dev tools. We are also looking at simpler MacRuby apps suc

Re: [MacRuby-devel] can't build trunk

2008-11-12 Thread Matt Aimonetti
not sure why I did it like that, I read it somewhere and then I was lazy and didn't bother looking further :( -Matt On Wed, Nov 12, 2008 at 4:10 AM, Markus Prinz <[EMAIL PROTECTED] > wrote: > > On 12.11.2008, at 07:26, Matt Aimonetti wrote: > > yay! I finally got it to

Re: [MacRuby-devel] PBI - MacRuby aux Fines Merbs...

2008-11-12 Thread Matt Aimonetti
> > One thing the "cowboys", from Rails for instance, have done right > is that there are tests for almost everything, > which is something that is seriously lacking atm imo. > Rails testing suite is in a very sad state, however I do agree with you, and I'll go further, we also need a test harness

[MacRuby-devel] http/json/parser

2008-11-13 Thread Matt Aimonetti
Since I can't use mechanize, hpricot or nokogiri, what are my alternatives to parse HTML/XML? What about JSON? Rich, I believe you showed me a twitter app you were working on, would you mind sharing what libs you use? Thanks, -Matt ___ MacRuby-devel m

Re: [MacRuby-devel] Is this the right list?

2009-01-12 Thread Matt Aimonetti
I believe it is. How can we help you? - Matt On Mon, Jan 12, 2009 at 1:44 PM, Timothy McDowell wrote: > Excuse me, but is this the correct list to ask questions about MacRuby > programming? > > -- > --Zonbi. > > ___ > MacRuby-devel mailing list > MacRu

Re: [MacRuby-devel] Request for proposals for the first Ruby+Cocoa only conference.

2009-02-05 Thread Matt Aimonetti
I wish there was a Ruby + cocoa conf a bit closer from home (San Diego, CA) but I hope you guys will put the talks online pretty soon after the conf. Thanks, - Matt On Thu, Feb 5, 2009 at 3:10 AM, Eloy Duran wrote: > Hi, > > As some of you might already know, we are organizing a Ruby and Cocoa

[MacRuby-devel] presentation slides

2009-02-06 Thread Matt Aimonetti
Tonight I presented MacRuby to the local San Diego Ruby group, here are the slides: http://www.slideshare.net/mattetti/macruby-when-objectivec-and-ruby-meet - Matt ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge

Re: [MacRuby-devel] Who wants to install gems anyways?! Introducing MicroGem

2009-02-09 Thread Matt Aimonetti
it looks like a very interesting project but may I suggest you drop the µ letter that most of us probably don't know how to type :( Sticking to ASCII might be better. - Matt On Mon, Feb 9, 2009 at 12:40 AM, Eloy Duran wrote: > Hi, > > As most people know installing gems on MacRuby still fail

Re: [MacRuby-devel] Who wants to install gems anyways?! Introducing MicroGem

2009-02-09 Thread Matt Aimonetti
ahh Patrick is our new savior :) I can't wait to be able to use macruby with minigems/rubygems. Thanks Laurent for keeping us posted. - Matt On Mon, Feb 9, 2009 at 11:34 AM, Laurent Sansonetti wrote: > Excellent work Eloy, I look forward to using it :-) You should definitely > write in the READ

[MacRuby-devel] Apple's RoundTransparentWindow sample ported to MacRuby

2009-02-15 Thread Matt Aimonetti
Hey guys, I felt the need to dive into an old Apple sample to understand how to do some advance window manipulation: http://developer.apple.com/samplecode/RoundTransparentWindow/index.html Porting the sample to MacRuby was pretty straight forward :) http://github.com/mattetti/macruby-roundtransp

[MacRuby-devel] HotCocoa subclassing NSView

2009-02-17 Thread Matt Aimonetti
I'm working on a new HotCocoa sample and I need to subclass NSView to override drawRect and add few more methods. I would like to be able to reuse all the goodies from HotCocoa and the view helper, what's the best way to do that? -Matt ___ MacRuby-devel

Re: [MacRuby-devel] HotCocoa subclassing NSView

2009-02-17 Thread Matt Aimonetti
; my_new_view :frame => [0,0,10,10] > > etc. > > -rich > > > > On Feb 17, 2009, at 4:15 AM, Matt Aimonetti wrote: > > I'm working on a new HotCocoa sample and I need to subclass NSView to >> override drawRect and add few more methods. &g

Re: [MacRuby-devel] HotCocoa subclassing NSView

2009-02-18 Thread Matt Aimonetti
, custom methods, etc (see lib/hotcocoa/ mapper.rb, NOTE: ugly file right now, is a target for refactor) They are modules and those modules are mixed in. Best, Rich On Feb 17, 2009, at 12:46 PM, Matt Aimonetti wrote: Thanks Rich, but if I do what you recommended, I guess I would not be able to use

Re: [MacRuby-devel] macruby, llvm, and iphone

2009-02-18 Thread Matt Aimonetti
Just wait for the official announcement that Laurent mentioned. I'm sure he will explain everything in details. Not using YARV means that the new VM built on top of core foundation, can use various tips to improve the perfs. -Matt Sent from my iPhone On Feb 18, 2009, at 14:44, Joel Reymon

Re: [MacRuby-devel] HotCocoa subclassing NSView

2009-02-20 Thread Matt Aimonetti
rit constants, custom methods, etc (see lib/hotcocoa/mapper.rb, > NOTE: ugly file right now, is a target for refactor) > They are modules and those modules are mixed in. > Best, > > Rich > > On Feb 17, 2009, at 12:46 PM, Matt Aimonetti wrote: > > Thanks Rich, but if I do what

Re: [MacRuby-devel] HotCocoa subclassing NSView

2009-02-22 Thread Matt Aimonetti
wRect(rect) > #custom stuff here > end > end > > view :frame => [10,10,100,100], :extend => MyCustomBehaviors > > Thoughts? > > Rich > > On Feb 21, 2009, at 1:36 AM, Matt Aimonetti wrote: > > Oops, I guess the email sent from my iphone never left m

Re: [MacRuby-devel] incremental conversion of ObjC programs?

2009-02-22 Thread Matt Aimonetti
It is possible and I believe Laurent is preparing a short article to cover legacy Objc + MacRuby. - Matt On Sat, Feb 21, 2009 at 8:59 AM, Rich Morin wrote: > I'd like to know whether it's possible to start with an ObjC > program and convert it, incrementally, to MacRuby. That is, > override on

Re: [MacRuby-devel] Porting Cocoa OpenGL sample code

2009-02-25 Thread Matt Aimonetti
Brian, what's up with this syntax: info = Pointer.new_with_type("^{_CGLRendererInfoObject=}") Can you explain: "^{_CGLRendererInfoObject=}"? is that some secret incantation only known by the MacRuby/Obj overlords? Thanks, - Matt On Wed, Feb 25, 2009 at 10:13 AM, Brian Chapados wrote: > CGLRen

Re: [MacRuby-devel] Building Mail.app plugin with MacRuby

2009-02-25 Thread Matt Aimonetti
Laurent replied via twitter: http://twitter.com/lrz/status/1243876823 The only workarounds would be to rewrite MacRuby to not use the GC, or Mail.app to use the GC. Very unlikely. - Matt On Mon, Feb 23, 2009 at 9:42 PM, Olexandr Prokhorenko wrote: > > Sirs, > I'm playing around Mail.app plugin

Re: [MacRuby-devel] Porting Cocoa OpenGL sample code

2009-02-25 Thread Matt Aimonetti
:char >      when :bool >      when :BOOL >        new_with_type('c') >      when :unsigned >        new_with_type('I') >    end >  end > >  def value >    self[0] >  end > end > > > > Need a pointer to an ObjC object? > p

[MacRuby-devel] new example + new HotCocoa mapping

2009-02-27 Thread Matt Aimonetti
MacRuby/HotCocoa sample with download, progress bar, scroll view/text view and new HotCocoa mapping: http://bit.ly/hThh9 I added a new mapping for NSProgressIndicator and put a pretty realistic example of what you would do in real life: 1. download a file 2. show the progress 3. display the con

Re: [MacRuby-devel] new example + new HotCocoa mapping

2009-02-27 Thread Matt Aimonetti
And here is a quick video showing the end result: http://screencast.com/t/5nAHRHQjL 100% Ruby (Well... 100% MacRuby with HotCocoa). -Matt On Fri, Feb 27, 2009 at 2:02 PM, Matt Aimonetti wrote: > MacRuby/HotCocoa sample with download, progress bar, scroll view/text view > and new Ho

Re: [MacRuby-devel] new example + new HotCocoa mapping

2009-02-27 Thread Matt Aimonetti
nerate a patch against MacRuby trunk somewhere > from your github repository? > > Laurent > > On Feb 27, 2009, at 3:17 PM, Matt Aimonetti wrote: > > And here is a quick video showing the end result: > http://screencast.com/t/5nAHRHQjL > > 100% Ruby (Well... 100% MacRub

[MacRuby-devel] ruby gems just for MacRuby

2009-03-09 Thread Matt Aimonetti
Hey Guys, I worked on a JSON lib for MacRuby which uses a dynlib. I'm thinking about making it in a gem but it would only be compatible with MacRuby. I feel like we should discuss this as a group and try to come up with a standard way of dealing with this challenge. - Matt __

Re: [MacRuby-devel] ruby gems just for MacRuby

2009-03-09 Thread Matt Aimonetti
hem) - Matt On Mon, Mar 9, 2009 at 3:22 PM, Rich Morin wrote: > At 14:13 -0700 3/9/09, Matt Aimonetti wrote: > > I worked on a JSON lib for MacRuby which uses a dynlib. I'm > > thinking about making it in a gem but it would only be > > compatible with MacRuby. I feel

Re: [MacRuby-devel] ruby gems just for MacRuby

2009-03-09 Thread Matt Aimonetti
down in xcode or a > few compiler flags on the command line. It shouldn't take much time > and is only a few extra bytes. > > On Mon, Mar 9, 2009 at 2:32 PM, Matt Aimonetti > wrote: > > Sorry Rich, but I personally only target intel processors. I don't think >

Re: [MacRuby-devel] ruby gems just for MacRuby

2009-03-09 Thread Matt Aimonetti
of MacRuby should lie imho. > > Eloy > > > On 9 mrt 2009, at 22:13, Matt Aimonetti wrote: > > Hey Guys, >> >> I worked on a JSON lib for MacRuby which uses a dynlib. I'm thinking >> about making it in a gem but it would only be compatible with MacRuby. I

[MacRuby-devel] do not upgrade CouchDB until I push a new release of CouchRest

2009-03-09 Thread Matt Aimonetti
Today a new syntax change was introduced and if you upgrade couch, it will break the current apps. I have a patch ready and I'll push it tonight or so. You will need to upgrade couch after I do that and bundle the gems, but I'll let you know. - Matt ___

Re: [MacRuby-devel] do not upgrade CouchDB until I push a new release of CouchRest

2009-03-09 Thread Matt Aimonetti
oops wrong email address... sorry guys :( - Matt On Mon, Mar 9, 2009 at 3:13 PM, Matt Aimonetti wrote: > Today a new syntax change was introduced and if you upgrade couch, it will > break the current apps. I have a patch ready and I'll push it tonight or so. > You will need to

Re: [MacRuby-devel] ruby gems just for MacRuby

2009-03-09 Thread Matt Aimonetti
Nic, Any suggestions to deal with macruby only gems? I don't think macruby can be considered a platform so any suggestions? - Matt On Mon, Mar 9, 2009 at 5:15 PM, Dr Nic Williams wrote: > On Tue, Mar 10, 2009 at 5:32 AM, Matt Aimonetti > wrote: > > Sorry Rich, but I perso

Re: [MacRuby-devel] ruby gems just for MacRuby

2009-03-09 Thread Matt Aimonetti
2009 at 5:56 PM, Brian Chapados wrote: > If we just need a way to check that we are on MacRuby before loading, > we could check that: > > Object.name == "NSObject" > > Brian > > On Mon, Mar 9, 2009 at 5:43 PM, Matt Aimonetti > wrote: > > Nic, > > &g

[MacRuby-devel] MacRuby is now on Twitter

2009-03-10 Thread Matt Aimonetti
If you want to hear the latest MacRuby news, make sure to follow @macruby on twitter: http://twitter.com/macruby On top of sharing with you the latest news, @MacRuby answers your (simple) MacRuby/Hotcocoa questions via twitter. Questions in English, French, Spanish, Japanese will be addressed in t

Re: [MacRuby-devel] OT: seeking advice on GIT client for OSX

2009-03-13 Thread Matt Aimonetti
I personally use the command line and gitx http://gitx.frim.nl/ - Matt On Fri, Mar 13, 2009 at 8:46 PM, Sophie (itsme213) wrote: > Google was somewhat inconclusive, so I'm seeking recommendations here. > Apologies if inappropriate, but I'd guess folks here would know. > > What GIT OSX client wou

Re: [MacRuby-devel] Introduce myself and some questions

2009-03-16 Thread Matt Aimonetti
> > The mapping files are in the hotcocoa/mappings directory in the MacRuby's > standard library. If you are willing to extend RubyCocoa I would recommend > to install it from the sources, it will be easier for you to test / > contribute your changes back. > And by RubyCocoa, Laurent really meant

Re: [MacRuby-devel] Roadmap - Upgrade the wiki

2009-03-16 Thread Matt Aimonetti
Thanks Stephane I just added the release date, I guess we do need to clean up this section tho. Merci, - Matt On Mon, Mar 16, 2009 at 12:03 PM, Stéphane Wirtel wrote: > Hi all, > > I registered on the Wiki but I can't change the Roadmap of the project, > because the date for the version 0.4 is

Re: [MacRuby-devel] How do I handle file drop events in HotCocoa?

2009-03-16 Thread Matt Aimonetti
You can define your own mapping within your app or extend the existing ones, delegation can also be added on each instance of any object. Here is a sample app I wrote with a custom mapping (which was later on merged in HotCocoa): http://github.com/mattetti/macruby-examples/blob/fe06617645c8809183f

Re: [MacRuby-devel] Packing gems in the app's folder

2009-03-27 Thread Matt Aimonetti
I agree with Eloy, I'm not using rubygems either. Just load manually what you vendored. - Matt On Fri, Mar 27, 2009 at 10:20 AM, Eloy Duran wrote: > Hi, > > Have you included the Gems directory in your xcode project so that it > copies the complete dir when building? > This probably then tells y

Re: [MacRuby-devel] branches/experimental

2009-03-29 Thread Matt Aimonetti
Hi Charlie, I don't think/hope you do it on purpose, but it seems that you're asking questions just to prove that Laurent is wrong and that whatever he will do will end up slowing down the current experimental branch. I understand that you are upset about Antonio Cangiano's blog post with early

[MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Matt Aimonetti
e| win << label(:text => "status code: #{homepage.status_code}", :layout => {:start => false}) win << label(:text => "Headers: #{homepage.headers.inspect}", :layout => {:start => false}) end end download "http://macruby.

Re: [MacRuby-devel] # of developers

2009-03-30 Thread Matt Aimonetti
Joel, If you were thinking about helping out, be reassured, help is always welcome ;) - Matt 2009/3/30 John Shea > Here is the blurb: > http://www.macruby.org/project.html > > J > > On Mar 30, 2009, at 16:53 , Joel Reymont wrote: > > How many people are actively developing MacRuby apart from

Re: [MacRuby-devel] helping out

2009-03-30 Thread Matt Aimonetti
Hey John, I would happily spend some time on MacRuby, but I have no idea where to > start. Anyway I was wondering whether you could give me a quick run down on > how to start investigating learning and experimenting with the > experimental branch. > Don't start with the experimental branch, it's

Re: [MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Matt Aimonetti
Could you please create a ticket for this bug, it looks like a constant is being called before being defined. It might be related to the load order in MacRuby (wild guess). - Matt On Mon, Mar 30, 2009 at 2:02 PM, Stéphane Wirtel wrote: > Hi all, > > I am trying to create a small xml-rpc client w

Re: [MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Matt Aimonetti
ssing or what we should look at. Thanks, - Matt 2009/3/30 Ernest N. Prabhakar, Ph.D. > Hi Matt, > On Mar 30, 2009, at 11:08 AM, Matt Aimonetti wrote: > > As you can see from the example list, the method name download isn't always > appropriate and maybe I should give it the

Re: [MacRuby-devel] helping out

2009-03-30 Thread Matt Aimonetti
Use trunk aka 0.4 for now. - Matt On Mon, Mar 30, 2009 at 1:39 PM, Brian Marick wrote: > I'm going to start porting the _RubyCocoa_ demo app into MacRuby. What's > the most useful (to you) branch to use? > > > On Mar 30, 2009, at 3:06 PM, Matt Aimonetti wrote: >

Re: [MacRuby-devel] branches/experimental

2009-03-30 Thread Matt Aimonetti
Thanks Charles for clarifying the situation :) For once, I'm glad to see I was wrong. - Matt On Mon, Mar 30, 2009 at 1:23 PM, Charles Oliver Nutter < charles.nut...@sun.com> wrote: > Charles Oliver Nutter wrote: > >> Matt Aimonetti wrote: >> >>> Hi Charl

Re: [MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Matt Aimonetti
could should able to generate > NSOperations to perform the downloads and add them to a queue. Those > classes handle creating threads (which have their own runloops) and > performing a task on the thread. That said, maybe this approach would > not work with the current IO implementation

Re: [MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Matt Aimonetti
you > > But I hope this bug will be resolved because I want to implement a native > cocoa client for the OpenERP project > > On 30 Mar 2009, at 23:22, Matt Aimonetti wrote: > > Could you please create a ticket for this bug, it looks like a constant is >> being called bef

Re: [MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Matt Aimonetti
t 3:06 PM, Ernest N. Prabhakar, Ph.D. < prabh...@apple.com> wrote: > Hi Matt, > > On Mar 30, 2009, at 2:37 PM, Matt Aimonetti wrote: > >> Pretty cool, my library does(will do) what Shoes does but with more >> flexibility (you can assign any class/objects as a delega

Re: [MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Matt Aimonetti
'm sure there a obj-c XML-RPC client we could wrap in a macruby specfic lib, rexml is pretty awful :( - Matt On Mon, Mar 30, 2009 at 3:16 PM, Stéphane Wirtel wrote: > Thank you so much, > > If you send me your patch, I send it to a friend of mine, because we want > to start t

Re: [MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Matt Aimonetti
works > > Stephane > > On 31 Mar 2009, at 05:05, Matt Aimonetti wrote: > > There you go: >> >> $ macirb >> >> require 'rexml/xmltokens' >> => true >> >> module REXML >> >> class Attribute >> >>

Re: [MacRuby-devel] Can any kind macruby experts help me get sqlite3 gem working with macruby--please?

2009-03-31 Thread Matt Aimonetti
the sqlite3 gem uses a native C extension which needs to compiled for your system. (usually done when installed via rubygems) The installation will fail if you use macgem, probably due to some IO issues and the lack of support of C extension. Someone should look into writing a wrapper for macruby

Re: [MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-31 Thread Matt Aimonetti
anced mode. Anyways, I added Brian to the repo and I hope to a see a fully finished version when I come back from vacation ;) - Matt p.s: adding tests would be totally awesome, I'm just not sure how to address that yet. On Mon, Mar 30, 2009 at 4:36 PM, Brian Chapados wrote: > 2009/3

Re: [MacRuby-devel] Trac ticket 232

2009-04-01 Thread Matt Aimonetti
Bill, Thanks for taking care of the repo and the ticketing system, that's much appreciated. - Matt On Wed, Apr 1, 2009 at 11:21 PM, William Siegrist wrote: > > On Apr 1, 2009, at 6:03 PM, Jason Morrison wrote: > > >> snip... > > So, I signed up for Trac, went back to the ticket, with the int

Re: [MacRuby-devel] NSControl's partial mapping to HotCocoa

2009-04-02 Thread Matt Aimonetti
Shouldn't it be: NSButton.new.respond_to?("setEnabled") == false setEnabled or enabled= looks like it would be an instance method instead of class method... Sorry I can't be more helpful, I'm on my way to the airport. - Matt 2009/4/2 Frisco Del Rosario > NSButton inherits from NSControl, whic

Re: [MacRuby-devel] a modest request

2009-04-05 Thread Matt Aimonetti
MacPerl? Hey, what happened to macruby? I go on vacation and MacRuby becomes macperl ;) -Matt Sent from my iPhone On Apr 5, 2009, at 0:23, Rich Morin wrote: I realize that Laurent and company have their hands full with simply trying to make JIT (etc) work on Intel hardware. So, I don't ex

Re: [MacRuby-devel] HotCocoa Tutorial ?

2009-04-07 Thread Matt Aimonetti
Salut Stéphane, I'd like to tackle documentation of HotCocoa when I come back from vacation, I believe there was some talk about generating documentation automatically but nothing concrete yet. We could def. at least add links to the cocoa documentation in the hotcocoa mapping source. However, h

Re: [MacRuby-devel] experimental branch: status update

2009-04-07 Thread Matt Aimonetti
slightly out topic: w00t!! great job guys! - Matt 2009/4/7 Eloy Duran > Hi, > I just added a spec:ci32 task which will run the specs in 32 bit mode. > It uses a simple script (miniruby32) which runs miniruby through > /usr/bin/arch. > > > http://github.com/alloy/mr-experimental/commit/321cc9b0

Re: [MacRuby-devel] HotCocoa Tutorial ?

2009-04-08 Thread Matt Aimonetti
On 08 Apr 2009, at 05:57, Matt Aimonetti wrote: Salut Stéphane, I'd like to tackle documentation of HotCocoa when I come back from vacation, I believe there was some talk about generating documentation automatically but nothing concrete yet. We could def. at least add links to the c

[MacRuby-devel] [hotcocoa] MVC helper?

2009-04-16 Thread Matt Aimonetti
I recently worked on a proof of concept with HotCocoa. I wanted to see how easy it would be to stay in pure Ruby and still use a MVC type approach. I put together the beginning of a sample app to see how it would work in real life: http://github.com/mattetti/phare/ I first wanted to make sure to s

Re: [MacRuby-devel] [hotcocoa] MVC helper?

2009-04-20 Thread Matt Aimonetti
4/usr/lib/ruby/1.9.1/hotcocoa/mapper.rb:67:in > `block in map_method' > from > /Users/emiltin/phare/Phare.app/Contents/Resources/lib/application.rb:21:in > `start' > from > /Users/emiltin/phare/Phare.app/Contents/Resources/lib/vendor/mvc.rb:12:in > `initialize' > from

Re: [MacRuby-devel] NoMethodError for button#on_action in HotCocoa

2009-04-21 Thread Matt Aimonetti
on_action needs to point to a block: :on_action{l.text = "some text"} or :on_action => :do_stuff def do_stuff Proc.new { puts "stuff" } end You can also do: :on_action => method(:do_stuff) Which I believe won't require a block in your method. - Matt On Tue, Apr 21, 2009 at 1:39 AM, F

Re: [MacRuby-devel] hpricot and MacRuby

2009-04-21 Thread Matt Aimonetti
hpricot uses a C extension which is not compatible with MacRuby yet. I'm planning on working with Aaron Patterson who wrote nokogiri during RailsConf. The hope is to have nokogiri compatible with macruby 0.5 pretty soon. In the mean time, HotCocoa has a XML parser which works pretty well, check the

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

2009-04-27 Thread Matt Aimonetti
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. - Matt On Mon, Apr 27, 2009 at 8:43 PM, Alex Vollmer wrote: > I've bee

Re: [MacRuby-devel] experimental branch: status update

2009-05-07 Thread Matt Aimonetti
You probably meant: Ist the RubyCocoa part redundant? right? ;) - Matt On Thu, May 7, 2009 at 1:26 PM, Brian Marick wrote: > > On May 4, 2009, at 5:35 PM, Laurent Sansonetti wrote: > > We can pass more Cocoa examples thanks to that. >> > > > I've started translating the examples in /Developer/

Re: [MacRuby-devel] experimental branch: status update

2009-05-07 Thread Matt Aimonetti
hone > > > On May 7, 2009, at 2:22 PM, Brian Marick wrote: > > >> On May 7, 2009, at 4:19 PM, Matt Aimonetti wrote: >> >>> On May 4, 2009, at 5:35 PM, Laurent Sansonetti wrote: >>> >>> We can pass more Cocoa examples thanks to that. >>>

[MacRuby-devel] testing macruby/hotcocoa apps

2009-05-11 Thread Matt Aimonetti
This is a very interesting topic and probably Eloy's favorite theme ;) Overall, the Ruby community strongly believes in testing, as a matter of fact we have so many testing frameworks I did not even test them all: test/unit, rspec, shoulda, bacon, context, cucumber etc Doing unit tests on you

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

2009-05-11 Thread Matt Aimonetti
Rich, did you try instruments? MacRuby apps work great with it. - Matt On Mon, May 11, 2009 at 11:25 PM, Rich Morin wrote: > Cool stuff. However, I'd like to go a bit further. > > Imagine a stack consisting of Cucumber, RSpec, MacRuby, and some > code which allows existing Cocoa apps to be exe

[MacRuby-devel] quick experiment

2009-05-14 Thread Matt Aimonetti
I decided to push to github a quick experiment I worked on the other night. http://github.com/mattetti/macruby-doc-app/tree/master It's simple, dirty and not fully working, but it queries the Cocoa API and displays the first result in a webkit view. My hope is to convert it to the new MVC framewo

Re: [MacRuby-devel] Modal sheet question

2009-05-14 Thread Matt Aimonetti
Rich Kilmer and I have been working on a new MVC approach for HotCocoa and Rich is currently implementing a new delegation system between the views and the controllers to make things way easier. I didn't check on the modal sheet yet and I don't really know how to programmatically set all the optio

Re: [MacRuby-devel] Status of Fiber support?

2009-05-14 Thread Matt Aimonetti
Jeremy, I would create a ticket, at least people encountering the same problem would be able to easily find a report of the problem. BTW, I tested and confirmed the reported issue: $ ruby1.9 -e "require 'fiber'; Fiber.new{puts 'test'}.resume" # => test $ macruby -e "require 'fiber'; Fiber.new{p

Re: [MacRuby-devel] Requiring a framework

2009-05-15 Thread Matt Aimonetti
I believe this is because the framework was not compiled in a compatible mode. (32-64bit, GC on). But this is just a wild guest due to the fact that I saw the same error when I was compiling and requiring my own frameworks/dynlib. - Matt On Fri, May 15, 2009 at 6:34 AM, Keenan Brock wrote: > Hi

Re: [MacRuby-devel] Building experimental branch

2009-05-18 Thread Matt Aimonetti
I'm using 10.5.7 but I would guess that Laurent runs on 10.6. - Matt On Mon, May 18, 2009 at 10:21 AM, Martin Hess wrote: > Has anyone had any luck building the experimental branch under 10.6? > ___ > MacRuby-devel mailing list > MacRuby-devel@lists.

Re: [MacRuby-devel] bug in MacRuby, noted on RubyCocoa Talk

2009-05-19 Thread Matt Aimonetti
Hey Rich, I think you forgot the link to the thread. - Matt On Tue, May 19, 2009 at 12:06 AM, Rich Morin wrote: > The folks on Rubycocoa-talk are talking about a MacRuby > bug that is causing RubyCocoa to fail. See: > > A potential bug to watch out for... > > -r > -- > http://www.cfcl.com/rdm

Re: [MacRuby-devel] bug in MacRuby, noted on RubyCocoa Talk

2009-05-19 Thread Matt Aimonetti
Thanks Rich! - Matt On Tue, May 19, 2009 at 12:21 AM, Rich Morin wrote: > At 00:16 -0700 5/19/09, Matt Aimonetti wrote: > > Hey Rich, I think you forgot the link to the thread. > > No, I didn't forget. I get RubyCocoa by email, so I never had > a link to include. Howev

Re: [MacRuby-devel] REXML

2009-05-22 Thread Matt Aimonetti
For XML, you can use Cocoa API or if you want to ue REXML, you need to use the hot patch I mentioned there: http://www.macruby.org/trac/ticket/134 Regarding the serialport library, I can't seem to see it on rubyforge, so I'm not sure what you are referring to. - Matt On Fri, May 22, 2009 at 9:4

Re: [MacRuby-devel] REXML

2009-05-22 Thread Matt Aimonetti
n rb_gc() > ruby 1.8.6 (2008-08-11) [universal-darwin9.0] > > Abort trap > new-host:~ robertrice$ exit > logout > > [Process completed] > > Could you suggest a fix for this? > > Thanks, > Bob Rice > > > On May 22, 2009, at 12:59 PM, Matt Aimonetti wrote: &

Re: [MacRuby-devel] REXML

2009-05-23 Thread Matt Aimonetti
MacIRB but it doesn't seem to work in XCODE. Any > idea why there would be a difference? > > Thanks, > Bob Rice > > > On May 22, 2009, at 12:59 PM, Matt Aimonetti wrote: > > For XML, you can use Cocoa API or if you want to ue REXML, you need to use > the hot patch

Re: [MacRuby-devel] [MacRuby] #257: Conversion to JSON works , But JSON parsing fails in MacRuby 0.4

2009-05-23 Thread Matt Aimonetti
I started working on a obj-c based json parser/generator. Can you give it a try and let me know if it works for you? http://github.com/mattetti/macruby-json/tree/master - Matt On Sat, May 23, 2009 at 3:28 AM, MacRuby wrote: > #257: Conversion to JSON works , But JSON parsing fails in MacRuby 0.

Re: [MacRuby-devel] A MacRuby-users group?

2009-05-24 Thread Matt Aimonetti
Paul, I don't think there will be any other lists and we end up creating a new one, that would be a macosforge which would have the same features as the one currently used. - Matt On Sun, May 24, 2009 at 12:44 AM, Paul Howson wrote: > On 23/05/2009, at 3:35 AM, Laurent Sansonetti wrote: > > Any

Re: [MacRuby-devel] Problem with MacGem install

2009-05-25 Thread Matt Aimonetti
There is problem with macgem not installing gems properly. You can try to unpack your gem and require it manually (recommended since you don't want to force your users to install gems). However ruby-opengl uses C extensions which will probably not be MacRuby 0.4 compatible. The good news tho, is t

Re: [MacRuby-devel] MacGem and C FFI recap for newbie?

2009-05-26 Thread Matt Aimonetti
That's correct, FFI support is expected in MacRuby 0.5 and eventually C extension support. Personally, I use obj-c dynlibs instead of frameworks but it shouldn't matter. - Matt On Tue, May 26, 2009 at 4:01 PM, Charles Turner wrote: > Hi all- > > I poked around the MacRuby wiki and mailing list,

[MacRuby-devel] MacRuby, changing the Ruby ecosystem

2009-05-28 Thread Matt Aimonetti
I wrote a blog post explaining why I think MacRuby is a game changer, feel free to let me know what you think. http://merbist.com/2009/05/27/macruby-changing-the-ruby-ecosystem/ - Matt ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org ht

  1   2   3   4   5   6   >