Style Question: accessing methods in the Document
Style Question: accessing methods in the Document
- Subject: Style Question: accessing methods in the Document
- From: Shawn Seet <email@hidden>
- Date: Thu, 1 Jun 2006 09:50:00 +1000
Hi All
I have a project which is document based and I need my custom views
to be able to access some methods in my document object. I am doing
this successfully using
[[[[NSApp keyWindow] windowController] document] methodName];
or
[[[[self window] windowController] document] methodName];
A couple of things tell me this is poor practice. I get a warning at
compilation that no method "methodName" was found. And this
technique fails if there is a parameter involved.
Please excuse the basic nature of this question. I'm new to this.
And I've looked through documentation but I feel that this might be
something so obvious (to you all) that it isn't documented.
Thank you in advance.
Shawn Seet
_______________________________________________
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