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
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
> 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.
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
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
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
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
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-
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
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
10 matches
Mail list logo