Re: newbie nsdocument question
Re: newbie nsdocument question
- Subject: Re: newbie nsdocument question
- From: Arthur <email@hidden>
- Date: Wed, 9 Nov 2005 22:09:18 -0200
Hi Ian.
that did it.
cheers,
arthur
You could do something like this, where myWindow is your NSWindow *.
MyDocument *myDoc = [[myWindow windowController] document];
Ian
Hi there.
I have a cocoa document based application. At some point in my app,
I need to send a message to MyDocument (that inherits from
NSDocument).
How do I get the instance of MyDocument that relates to a window?
I am sorry if the answer is too obvious, but cocoa can be a bit
confusing for newbies sometimes...
thank you,
arthur
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden