[MacRuby-devel] RoxorReturnFromBlockException*

2011-03-30 Thread Martin Hawkins
>From what I can read in the archives, this was raised about 18 months ago. Loosely following Matt's book, I've written the following code: def showOpenPanel( sender) openPanel = NSOpenPanel.openPanel openPanel.setCanChooseDirectories( false) openPanel.setShowsHiddenFiles( NSUserDefaults.

Re: [MacRuby-devel] WWDC ?

2011-03-30 Thread Eloy Duran
I would have loved to come to the WWDC, but unfortunately can't make it... Sorry for the useless answer, just wanted to share my pain ;) On 28 mrt. 2011, at 22:25, Nick Ludlam wrote: > Hey all, > I was just wondering if Laurent or any of the other people involved with > MacRuby are planning to

Re: [MacRuby-devel] WWDC ?

2011-03-30 Thread Nick Ludlam
Hah, well it turns out that I wasn't quick enough either, and I didn't get tickets. Selling out in under 12 hours is almost like some rock concert. On 30 Mar 2011, at 16:19, Eloy Duran wrote: > I would have loved to come to the WWDC, but unfortunately can't make it... > Sorry for the useless an

Re: [MacRuby-devel] WWDC ?

2011-03-30 Thread Robert Payne
I'll be there as well! -Robert On Mar 31, 2011, at 4:32 AM, Nick Ludlam wrote: > Hah, well it turns out that I wasn't quick enough either, and I didn't get > tickets. Selling out in under 12 hours is almost like some rock concert. > > On 30 Mar 2011, at 16:19, Eloy Duran wrote: > >> I would ha

Re: [MacRuby-devel] RoxorReturnFromBlockException*

2011-03-30 Thread Gabriel Gilder
I think you want "break" instead of "return". You can't return from a block (Proc). -Gabriel On Wed, Mar 30, 2011 at 7:53 AM, Martin Hawkins wrote: > From what I can read in the archives, this was raised about 18 months > ago. Loosely following Matt's book, I've written the following code: > de

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] WWDC ?

2011-03-30 Thread Christian Niles
I was able to grab a ticket in time too. Are there any MacRuby-related events planned yet? If not, we should coordinate an informal meetup. On Mar 30, 2011, at 10:12 AM, Robert Payne wrote: > I'll be there as well! > > -Robert > On Mar 31, 2011, at 4:32 AM, Nick Ludlam wrote: > >> Hah, well i

Re: [MacRuby-devel] hotcocoa virus

2011-03-30 Thread Gary Weaver
Enzo, It might be a translation issue, but I wouldn't call that a virus (it doesn't replicate, it is just something that freezes your computer). I wouldn't call it "Virus" in the gist either, if I were you. If it is a bug in HotCocoa, than it may be a bug (or at least undesired functionality

Re: [MacRuby-devel] hotcocoa virus

2011-03-30 Thread Vincenzo Piombo
Gary, "Virus" was joke of course, however I changed the name on gist. I doubt it is a hotcocoa issue, but as soon as I have some time will try to replicate it with an IB version. What do you mean by "where you got it" ? The code is mine, I was trying to do something along the lines of this http:/

Re: [MacRuby-devel] WWDC ?

2011-03-30 Thread Rich Morin
At 12:36 PM -0700 3/30/11, Christian Niles wrote: > Are there any MacRuby-related events planned yet? > If not, we should coordinate an informal meetup. Works for me, particularly if it's in a venue that's open to the general public. We can list it on SFRuby and let folks meet each other... -r -

Re: [MacRuby-devel] WWDC ?

2011-03-30 Thread Andre Lewis
> At 12:36 PM -0700 3/30/11, Christian Niles wrote: > > Are there any MacRuby-related events planned yet? > > If not, we should coordinate an informal meetup. > Good idea, it would be cool to meet up with some other MacRubyists. ___ MacRuby-devel mailing

Re: [MacRuby-devel] WWDC ?

2011-03-30 Thread Larry Staton Jr.
On Mar 30, 2011, at 19:09 , Andre Lewis wrote: > > At 12:36 PM -0700 3/30/11, Christian Niles wrote: > > Are there any MacRuby-related events planned yet? > > If not, we should coordinate an informal meetup. > > Good idea, it would be cool to meet up with some other MacRubyists. I'd be interes

Re: [MacRuby-devel] WWDC ?

2011-03-30 Thread Rich Morin
Looking at http://www.sfruby.info/#upcoming, I don't see anything scheduled during WWDC (June 6-10). If the WWDC attendees in the crowd can settle on a date (ideally, one that works for Jordan and Laurent :-), I'll be happy to put in the schedule. I can probably also find a venue for the event; l

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

2011-03-30 Thread Bryan Harrison
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 have trifled with any number of languages from C to AppleScri

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

2011-03-30 Thread Terry Moore
Just a suggestion but I think having a goal will determine what you use. MacRuby will still expose you to the Cocoa libraries so you will be able to interchange with OBJC easily. The MacRuby style tho gets my vote... e.g. (OBJC) NSMutableDictionary* myDict = [[NSMutableDictionary alloc]init];

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

2011-03-30 Thread Scott Ribe
On Mar 30, 2011, at 9:56 PM, Terry Moore wrote: > it may just be a verbosity thing but once you get used to the Macruby style > OBJC becomes tedious. Hell, I spend most of my time in C++, and I find the ojbc verbosity to be tedious ;-) -- Scott Ribe scott_r...@elevated-dev.com http://www.elev

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

2011-03-30 Thread Rich Morin
I'm not a MacRuby or ObjC expert, but here is my understanding. > What are the advantages of MacRuby over Objective-C? MacRuby is a variant of Ruby, so it's an interpreted, concise, dynamic language. Objective-C is a compiled language based on C (with a lot of run-time support). So, a MacRuby

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

2011-03-30 Thread Morgan Schweers
Greetings, Hell, I spend most of my time in Java, and I find the objc verbosity to be...uhhh...pretty familiar. ;) Joking aside, I'll often take common ObjC patterns and 're-do' them the Ruby way so they're more efficient to the way my brain works. As an example from a recent bit of code, you hav

Re: [MacRuby-devel] RoxorReturnFromBlockException*

2011-03-30 Thread Gabriel Gilder
On further digging, it seems like the exception raised when you return from a block (/Proc/lambda) is MacRuby specific. Seems like this should have been fixed a while ago: http://www.macruby.org/trac/ticket/412 I wonder if this bug should be re-opened? I actually encountered a similar problem rece

[MacRuby-devel] How to do Drag and Drop

2011-03-30 Thread Morgan Schweers
Greetings, On Wed, Mar 30, 2011 at 2:32 PM, Vincenzo Piombo wrote: > By the way, do you know where can I find a working drag&drop macruby > example ? > > Enzo > Well...crud. My email on this got eaten because I used syntax highlighted code which bulked the email beyond the 40k limit on the mai

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

2011-03-30 Thread Jordan K. Hubbard
On Mar 30, 2011, at 8:43 PM, Bryan Harrison wrote: > So… I understand that Cocoa is a given, but today's million dollar question > is Objective-C or MacRuby? I'm a blank slate with regard to both and so > could use some good advice. For example… > > What are the advantages of MacRuby over Ob