Re: [MacRuby-devel] windowControllerDidLoadNib strangeness

2010-11-28 Thread Tom Jordan
Hi Laurent, I ended up just learning how to draw in a view using NSBezierPath, much easier than I thought :)) I can post a ticket in a few days once I can figure out where it breaking.. It's not a concern for me anymore, but if it's worth opening a ticket for, I'll be happy to oblige.. Do you

Re: [MacRuby-devel] windowControllerDidLoadNib strangeness

2010-11-26 Thread Laurent Sansonetti
Hi Tom, Could you try to reduce the problem into a new Xcode project? (adding MRGraphics to it if necessary.) Once you have a reduction, please attach it to a new ticket: http://www.macruby.org/trac/newticket Thanks :) Laurent On Nov 26, 2010, at 2:30 PM, Tom Jordan wrote: > > The problem

Re: [MacRuby-devel] windowControllerDidLoadNib strangeness

2010-11-26 Thread Tom Jordan
> 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 working. > So the MPGraphics files are compiling alright, but the code that uses it is > somehow triggering an error.

Re: [MacRuby-devel] windowControllerDidLoadNib strangeness

2010-11-26 Thread Tom Jordan
i jumped the gun... The problem is in my code that uses the MRGraphics library.. since I removed that, but kept in all of the MRGraphics files, and required it. So they are compiling alright, but the def drawRect(rect) @theSteps ? @theSteps : @theSteps = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11

Re: [MacRuby-devel] windowControllerDidLoadNib strangeness

2010-11-26 Thread Tom Jordan
I'm having some trouble bringing in the old nib to the newly working project, so I went back to the old project and removed the MRGraphics code.. windowControllerDidLoadNib is now working right in the original project.. I hope there is a way to still use the MRGraphics library.. I'm going to submit

Re: [MacRuby-devel] windowControllerDidLoadNib strangeness

2010-11-26 Thread Tom Jordan
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 using the MRGraphics library at: https://github.com/mattetti/macruby_graphics It works great to quickly get a custom graphics view

Re: [MacRuby-devel] windowControllerDidLoadNib strangeness

2010-11-26 Thread Laurent Sansonetti
Hi Tom, I just created a sample NSDocument-based project, and added a windowControllerDidLoadNib: method to the NSDocument class, calling super as you do, and everything worked as expected. Could you try that and see if you still see the problem? Also, do you run a 32-bit machine? Laurent O

Re: [MacRuby-devel] windowControllerDidLoadNib strangeness

2010-11-26 Thread Thibault Martin-Lagardette
Hi Tom, I can't seem to understand what is wrong, I guess, since you said everything else works, that you did call the necessary `framework "Foundation"`? Could you maybe provide us some test project, so that we can reproduce and maybe trace the error better? :-) Thank you! -- Thibault Martin-

Re: [MacRuby-devel] windowControllerDidLoadNib strangeness

2010-11-25 Thread Tom Jordan
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

[MacRuby-devel] windowControllerDidLoadNib strangeness

2010-11-25 Thread Tom Jordan
Hello, I'm encountering some weird behavior when trying to update a view using windowControllerDidLoadNib after loading in a persistent document. When I provide windowControllerDidLoadNib a single argument, as shown below (and required by the NSDocument class definition and in every example I've s