Re: newbie nsdocument question
Re: newbie nsdocument question
- Subject: Re: newbie nsdocument question
- From: Ian Anderson <email@hidden>
- Date: Wed, 9 Nov 2005 14:16:20 -0800
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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