Re: [MacRuby-devel] Drawing in Custom Views

2009-10-25 Thread Michael Shapiro
Hey John, You shouldn't need to put everything in drawRect:. In your original, you're stomping @path in your drawRect. :) --Mike On Oct 25, 2009, at 4:21 PM, John-Paul Bader wrote: Ah never mind. If I put the path drawing code directly into the drawRect method it all works fine. The whol

Re: [MacRuby-devel] new macruby tips: dialog window

2009-10-25 Thread Matt Aimonetti
Hey Steve, Check John's repo: http://idisk.mac.com/johnmshea-Public?view=web he did a great job porting examples from the book and other examples. That might help you in your quest to Cocoa knowledge :) - Matt On Sun, Oct 25, 2009 at 7:10 PM, s.ross wrote: > On Oct 25, 2009, at 5:00 PM, Matt

Re: [MacRuby-devel] new macruby tips: dialog window

2009-10-25 Thread s.ross
On Oct 25, 2009, at 5:00 PM, Matt Aimonetti wrote: I'm back from vacation and wrote a very simple tutorial: MacRuby tips: create a Cocoa file/folder browser in a few lines of code: http://bit.ly/1VuxBZ It looks like it's time for me to move my tutorials http://merbist.com/category/macruby/

[MacRuby-devel] new macruby tips: dialog window

2009-10-25 Thread Matt Aimonetti
I'm back from vacation and wrote a very simple tutorial: MacRuby tips: create a Cocoa file/folder browser in a few lines of code: http://bit.ly/1VuxBZ It looks like it's time for me to move my tutorials http://merbist.com/category/macruby/ to MacRuby's recipes. Anyone feels like contributing mor

Re: [MacRuby-devel] Drawing in Custom Views

2009-10-25 Thread John-Paul Bader
Ah never mind. If I put the path drawing code directly into the drawRect method it all works fine. The whole thing now looks like this: http://pastie.textmate.org/private/rczadjlgyv63txzv6raea ~ John On 25.10.2009, at 20:36, John-Paul Bader wrote: Hey, just saw the previous question regardi

[MacRuby-devel] Drawing in Custom Views

2009-10-25 Thread John-Paul Bader
Hey, just saw the previous question regarding an example from the Cocoa book. I'm currently trying play with custom views and paths. Right now I'm trying the Example from page 240 »Drawing with NSBezierPath« but I can't get the path to draw. I uploaded the xcode project onto http://smyck.

[MacRuby-devel] Implementing Undo In RaiseMan / MacRuby

2009-10-25 Thread s.ross
I'm trying to implement the RaiseMan example from Aaron Hillegass's book in MacRuby. All has gone pretty well until I reached undo. The idea is to handle the insertObject message each time a Person is inserted and manipulate the undo stack. def insertObject(p, inEmployeesAtIndex:index)

[MacRuby-devel] [MacRuby] #403: rescue block executed if exception raised in previous iteration

2009-10-25 Thread MacRuby
#403: rescue block executed if exception raised in previous iteration ---+ Reporter: pwil...@… | Owner: lsansone...@… Type: defect | Status: new Priority: ma