rk-and-sweep.*
Maybe someone is kind enough to correct me.
Regards,
- Rob
On 2011-07-27, at 7:54 PM, Tom Jordan wrote:
>* Hi,*>* *>* I'd like to use MacRuby alongside Objective-C in a MIDI app
>I'm writing. I have already had success with evaluating MacRuby files from
immensely.. or something in
between if that's the case.. any more knowledge on this subject will
be greatly appreciated.. Thanks !
Cheers,
Tom Jordan
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> Thanks :)
>
> Laurent
>
> On Nov 26, 2010, at 2:30 PM, Tom Jordan wrote:
>
>
> The problem is in my code that uses the MRGraphics library..
>> I removed that, but kept in all of the MRGraphics files, and required it,
>> and windowControllerDidLoadNib is still work
>
> end
>
>
>
> c.background(Color.gray) # paint background
>
>
>
> c.fill(Color.blue) # paint highlighted range
>
> c.draw(highlightedRange)
>
>
>
> c.fill(Color.yellow) # draw step-boxes
>
> c.stroke(0)
>
-boxes
c.stroke(0)
c.stroke_width(1)
c.draw(stepboxes)
c.fill(Color.black) # draw cursor
c.stroke_width(0)
c.draw(cursor)
end
end
On Fri, Nov 26, 2010 at 5:14 PM, Tom Jordan wrote:
> I'm having some trouble bringing in the old nib to the newly working
&
m going to submit an issue at its Github site..
On Fri, Nov 26, 2010 at 4:46 PM, Tom Jordan wrote:
> Thanks Guys ! I just created a new project and it worked.. Now I'm going
> to bring in my files from the other project and see if I can find where it
> breaks..
> I'm also
unt or something so that I can post a full
project if need be..
This is a great resource, I appreciate the help.. thanks !
Regards,
Tom Jordan
On Fri, Nov 26, 2010 at 3:42 PM, Laurent Sansonetti
wrote:
> Hi Tom,
>
> I just created a sample NSDocument-based project, and added
>
trying to get the code to format right, here it is again (hopefully
better!):
class MyDocument < NSDocument
attr_accessor :loadedmodel, :root #outlet to model field of controller
# Name of nib containing document window
def windowNibName
'MyDocument'
end
# Document data representation
/) {|s| s.downcase}
end
def windowControllerDidLoadNib(aController)
super(aController)
@root.model = @loadedmodel
NSLog("model loaded")
end
end
Regards,
Tom Jordan
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel