Re: [MacRuby-devel] XCode 4 error

2011-09-11 Thread Rob Gleeson
m/titles/9781449380373/index.html). > Does Interface Builder work okay for you as well? some people had problems connecting outlets to actions. Thanks. - Rob > > On Sun, Sep 11, 2011 at 11:04 AM, Rob Gleeson wrote: > > On 11 Sep 2011, at 16:00, Jeremy Smith wrote: > > &g

Re: [MacRuby-devel] XCode 4 error

2011-09-11 Thread Rob Gleeson
On 11 Sep 2011, at 16:00, Jeremy Smith wrote: > There's also the whole issue of MacRuby not working with new versions of > Xcode? I thought 4.1 was one of those that the framework wouldn't load in to. > Yeah, I'm curious about this too. I got a new macbook pro and I'd like to play with MacRu

Re: [MacRuby-devel] How do I get gems into XCode/MacRuby environment?

2011-04-14 Thread Rob Gleeson
On 14 Apr 2011, at 08:35, Dave Baldwin wrote: > I cannot help with the gems stuff but I am not sure if MacRuby supports Rails > yet. It didn't a few releases ago and I don't recall anything in the more > recent release notes about it. > > Dave. > If you decide to distribute your application

Re: [MacRuby-devel] Tyro Needs Ruby vs. O-C Advice

2011-03-31 Thread Rob Gleeson
On 31 Mar 2011, at 04:43, Bryan Harrison wrote: > I've decided to use an upcoming sabbatical to teach myself OS X and iOS > programming. My background includes OS X systems administration and web > development, mostly using the Apache/MySQL/PHP model. I'm familiar with OOP > concepts and hav

Re: [MacRuby-devel] RoxorReturnFromBlockException*

2011-03-31 Thread Rob Gleeson
On 31 Mar 2011, at 08:05, Rob Gleeson wrote: > > >> >> def trigger_action(sender) >> a_proc = Proc.new { |var| >> puts "hello in proc" >> return 1 >> } >>

[MacRuby-devel] RoxorReturnFromBlockException*

2011-03-31 Thread Rob Gleeson
> > def trigger_action(sender) > a_proc = Proc.new { |var| > puts "hello in proc" > return 1 > } > a_proc.call('test') > puts "hello after proc" > end > That code runs without triggeri

Re: [MacRuby-devel] RoxorReturnFromBlockException*

2011-03-30 Thread Rob Gleeson
On 30 Mar 2011, at 18:23, Gabriel Gilder wrote: > I think you want "break" instead of "return". You can't return from a block > (Proc). > > -Gabriel That's not strictly true, you can if the Proc.new { } object was initialized within a method (like it is here). However calling return explicitl

Re: [MacRuby-devel] Hey Apple, please be nice and share

2011-03-07 Thread Rob Gleeson
On 7 Mar 2011, at 22:59, Thibault Martin-Lagardette wrote: > Even though I totally would rather see MacRuby as a public framework just > like everyone else here, isn't the reason because once it's in the Public > frameworks, Apple would have to maintain it for a certain amount of time, and > s

Re: [MacRuby-devel] MacRuby 0.9 release notes

2011-02-26 Thread Rob Gleeson
Hi Laurent, macruby_deploy --gem sounds neat :) With regards to statically linking, is it preferred that you ask someone using your application to download MacRuby separately, or can you feel safe that statically linking will be okay? Thanks. - Rob _

Re: [MacRuby-devel] #init, or #initialize

2011-02-24 Thread Rob Gleeson
On 24 Feb 2011, at 13:26, Eloy Durán wrote: > I use #init whenever I’m dealing with Cocoa(-like) classes and #initialize > when it's pure Ruby. I do the same with regards to camel and snake casing. > Also note that #init is not supposed to take arguments, whereas #initialize > may definitely d

[MacRuby-devel] #init, or #initialize

2011-02-24 Thread Rob Gleeson
Hi It seems on MacRuby 0.8 that a subclass of NSWindowController has #init called, but #initialize is not called. It seems really odd to have two different initialize methods, and particularly when one of them breaks away from what is convention in Ruby. Is this intended? Thanks Rob ___

Re: [MacRuby-devel] NoMethodError (ib_outlets)

2011-02-23 Thread Rob Gleeson
og.phusion.nl/2010/03/12/creating-our-very-first-mac-application-with-ruby-how-exciting/#more-509 > > Laurent > > On Feb 23, 2011, at 1:57 PM, Rob Gleeson wrote: > >> Hi >> >> I'm giving my first MacRuby application a shot, and I'm sort of blind to b

[MacRuby-devel] NoMethodError (ib_outlets)

2011-02-23 Thread Rob Gleeson
Hi I'm giving my first MacRuby application a shot, and I'm sort of blind to be honest :) I've added a NSWindowController, attached it to my window, saved the classes in Interface Builder, but when I build and run my application, I get a NoMethodError for 'ib_outlets'. My controller inherits f

Re: [MacRuby-devel] require module

2010-11-29 Thread Rob Gleeson
On 29 Nov 2010, at 13:14, Alan Skipp wrote: > Hi everyone, > This is just a quick query about using 'include' in an xcode project. > When creating an instance of a class, a 'require' statement is not needed > beforehand, but to include a module, you must first require it. > > #no need to requir

Re: [MacRuby-devel] A little NSStatusBar app - Gmail Notifr

2010-11-19 Thread Rob Gleeson
Thanks for sharing :) On 19 Nov 2010, at 14:36, James Chen wrote: > Hi guys, > > Gmail Notifr was originally written in RubyCocoa, which runs as a little > NSStatusBar app and checks your gmail feeds at specified intervals. I started > updating it to MacRuby last month. > > Most changes were

Re: [MacRuby-devel] macgem and previously installed gems

2010-11-07 Thread Rob Gleeson
On 31 Oct 2010, at 01:16, Andy Park wrote: > I'm trying to get macirb that came with my new MacRuby installation to play > nice > ly with the existing .irbrc, where I'm using a lot of gems previously > installed > with gem. It looks like my gems aren't found by macirb because they were > inst

Re: [MacRuby-devel] MacRuby with Subprocesses

2010-11-03 Thread Rob Gleeson
I think you should still file a bug report -- MacRuby should never ever segfault :) ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] MacRuby with Subprocesses

2010-11-03 Thread Rob Gleeson
fork() is not implemented in MacRuby, and I don't think it will be implemented anytime in the near future because of conflicts with the CoreFoundation framework and the Garbage Collector (as I understand it). The same is true for Objective-C applications. NSTask is definitely the way to go, bu

Re: [MacRuby-devel] Strings Differ between Ruby and MacRuby?

2010-10-11 Thread Rob Gleeson
> Is this a bug? Kind of. It looks like MacRuby differs from Ruby 1.9(and 1.8) in that it does not return ASCII-8BIT strings(or "byte" strings) from IO objects. Encoding.default_external is set to UTF-8, where as in Ruby 1.9 it is set to ASCII-8BIT. Encoding.default_internal is set to nil, whic

Re: [MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-09 Thread Rob Gleeson
On 8 Oct 2010, at 23:27, Matt Aimonetti wrote: > Thanks Rob, I didn't forget you, but I'm on a business trip and I don't have > the macruby repo setup on this machine so I'll merge your changes over the > week end. > > - Matt No worries. I spotted some errors in the tutorial, I mapped Sandbo

Re: [MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-07 Thread Rob Gleeson
Okay, I modified the document a tiny bit making note of the return value of #apply!, and the SecurityError exception it can raise: http://github.com/robgleeson/macruby_website/blob/Sandbox_class_tutorial/content/documentation/the-sandbox-class.txt ___ M

Re: [MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-07 Thread Rob Gleeson
On 7 Oct 2010, at 10:49, Nick Ludlam wrote: > Hi Rob, > I like the tutorial, it's nicely short and concise. One thing I'd like to see > is the expected outcome of running the code you've placed within the text. > Could you include this information underneath the code blocks? > > I'm imagining

Re: [MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-07 Thread Rob Gleeson
On 7 Oct 2010, at 07:55, Matt Aimonetti wrote: > Thx I'll merge the article asap (after a quick sanity check). > > - Matt > > Sent from my iPhone > Thanks Matt. ___ MacRuby-devel mailing list [email protected] http://lists.macosfo

Re: [MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-06 Thread Rob Gleeson
> > It looks good to me (but I'm not a native English speaker :)). > > I think this tutorial should be on the website. Would you mind converting it? > If yes, some information is available here: > http://www.macruby.org/documentation/website-contributions.html > > Laurent > Done! :-) Commi

Re: [MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-06 Thread Rob Gleeson
On 6 Oct 2010, at 09:19, Laurent Sansonetti wrote: > > It looks nice! Thanks for writing it :) No problem! My way of contributing back to the MacRuby community, since I'm not that good with C/ObjC. > Something worth mentioning I believe is that sandbox profiles are actually > Scheme expres

[MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-06 Thread Rob Gleeson
I wrote a short tutorial I'd like to share with everybody about the new Sandbox class introduced in the new 0.7 release of MacRuby. I tried to focus on using the class inside MacRuby as much as possible. Please let me know what you think, spot errors, etc! Link: http://robgleeson.github.com/docu

Re: [MacRuby-devel] [ANN] MacRuby 0.7

2010-10-04 Thread Rob Gleeson
Laurent, Congrats! Rob On 4 Oct 2010, at 22:40, Laurent Sansonetti wrote: > Hi, > > After 5 months of development since the last release, MacRuby 0.7 is > now available. Get it here while it's still hot! > > MacRuby is an implementation of Ruby 1.9 directly on top of Mac OS X > core technol

Re: [MacRuby-devel] Socket Class not implimented?

2010-10-02 Thread Rob Gleeson
On 3 Oct 2010, at 03:40, Rob Gleeson wrote: > > On 3 Oct 2010, at 03:36, Shaun August wrote: > >> Hi There, >> >> I am trying to run a ruby TCPsocket to get information from a quatech serial >> device server. The code runs well in ruby but I get an error when

Re: [MacRuby-devel] Socket Class not implimented?

2010-10-02 Thread Rob Gleeson
On 3 Oct 2010, at 03:36, Shaun August wrote: > Hi There, > > I am trying to run a ruby TCPsocket to get information from a quatech serial > device server. The code runs well in ruby but I get an error when I try to > reference the class in my MacRuby code: > > uninitialized constant Coin_Coun

Re: [MacRuby-devel] Hotcocoa documentation

2010-10-02 Thread Rob Gleeson
Interface Builder? :-) Rob On 2 Oct 2010, at 13:48, Michael Sokol wrote: > Thank you for the answer, I feel a bit disappointed though... I loved the > simplicity of Hotcocoa. > > Is there any other library/layer on top of Macruby that helps simplifying the > creation of UI? > > Michael >

Re: [MacRuby-devel] MacRuby 0.7 release notes

2010-10-02 Thread Rob Gleeson
Hey, awesome work on the Sandbox class! I wrote a library to do something similar using FFI and MRI/REE. I'll definitely be taking a look at that :-) Congrats on 0.7, too! Rob On 2 Oct 2010, at 05:44, Laurent Sansonetti wrote: > Hi guys, > > MacRuby 0.7 is now ready to be released. I create

Re: [MacRuby-devel] ActionMailer in Macruby?

2010-09-30 Thread Rob Gleeson
On 30 Sep 2010, at 03:40, Shaun August wrote: > Hi There, > > I am trying to use actionmailer Macruby and I am not having any luck. I am > getting an uninitialized constant error. The same script runs fine in ruby. > > Thanks, > > Shaun > > ___ > M

Re: [MacRuby-devel] A question about OSX APIs.

2010-08-24 Thread Rob Gleeson
ug 20cyclable10, at 05:43, Caio Chassot wrote: > On 2010-08-25, at 01:13 , Rob Gleeson wrote: >> >> Kind of :-) cmd+` seems to cycle focus between windows belonging to a single >> application. >> I'd like to group a random number of windows that don't

Re: [MacRuby-devel] A question about OSX APIs.

2010-08-24 Thread Rob Gleeson
On 25 Aug 2010, at 04:54, Scott Thompson wrote: > > On Aug 24, 2010, at 10:34 PM, Rob Gleeson wrote: > >> Hey MacRubyists, >> >> This question isn't strictly MacRuby related, but if I get an answer I'd >> like to try and implement it in MacRuby. &

[MacRuby-devel] A question about OSX APIs.

2010-08-24 Thread Rob Gleeson
Hey MacRubyists, This question isn't strictly MacRuby related, but if I get an answer I'd like to try and implement it in MacRuby. The OSX WM doesn't seem to be able to treat a stack of windows as an individual stack that you can cycle through, for example an entire "Space" is treated as one st

Re: [MacRuby-devel] Fibers and Enumerators

2010-08-12 Thread Rob Gleeson
+1 for implementing Fibers in MacRuby. Rob http://robgleeson.github.comWebsite http://github.com/robgleeson GitHub [email protected] On 12 Aug 2010, at 21:33, [email protected] wrote: > > I agree (I don't see a performance issue, rather, a compatib

[MacRuby-devel] Could we have…

2010-08-06 Thread Rob Gleeson
Hey, Could we have a separate mailing list for bug reports, and another mailing list for MacRuby users? The mailing list seems to be a lot more popular lately, with 90% of posts being bug reports, and I'm not too excited about reading bug reports ;-) Rob http://robgleeson.github.com

Re: [MacRuby-devel] [ANN] minitest-macruby 1.0.0 Released

2010-07-19 Thread Rob Gleeson
Hi, It is available as a Gem on GemCutter. http://rubygems.org/gems/minitest-macruby gem install minitest-macruby I don't think it is documented, yet. Rob http://robgleeson.github.comWebsite http://github.com/robgleeson GitHub [email protected]

Re: [MacRuby-devel] [MacRuby] #795: GCD inconsistently copies local variables inside blocks

2010-07-15 Thread Rob Gleeson
.infoE-Mail On 15 Jul 2010, at 22:47, Rob Gleeson wrote: > Hey Ernest, > > Oh okay, and now that code makes more sense :-D > I'm out of my depth here as I really don't understand GCD nor have I looked > into your GCD library. > > I can only think of on

Re: [MacRuby-devel] [MacRuby] #795: GCD inconsistently copies local variables inside blocks

2010-07-15 Thread Rob Gleeson
http://github.com/robgleeson GitHub [email protected] On 15 Jul 2010, at 22:38, Ernest N. Prabhakar, Ph.D. wrote: > Hi Rob, > > On Jul 15, 2010, at 2:34 PM, Rob Gleeson wrote: >> Hey again, >> >> Sorry just had another idea - since

Re: [MacRuby-devel] [MacRuby] #795: GCD inconsistently copies local variables inside blocks

2010-07-15 Thread Rob Gleeson
ing arguments to the block as parameters should work but I'm way out of my depth as far as GCD goes. Rob http://robgleeson.github.comWebsite http://github.com/robgleeson GitHub [email protected] On 15 Jul 2010, at 22:29, Rob Gleeson wrote: >

Re: [MacRuby-devel] [MacRuby] #795: GCD inconsistently copies local variables inside blocks

2010-07-15 Thread Rob Gleeson
Hey ernest, I haven't got any experience with GCD but wouldn't it make more sense if block arguments were received as parameters to the block? This would make the variables block-local. Dispatch::Queue.new("i").sync { |i| # block local 'i' } Remember blocks in Ruby are closures, too. Rob