Re: Getting a reference to the data model from a delegate
Re: Getting a reference to the data model from a delegate
- Subject: Re: Getting a reference to the data model from a delegate
- From: James DiPalma <email@hidden>
- Date: Sat, 18 Jan 2003 18:10:56 -0800
From: Rob In der Maur <email@hidden>
Now my question:
I'm having problems getting a reference back to my data model from a
delegate in a document based application, which also has a dedicated
NSWindowController class.
I have a lot of questions with this statement, but my first question
may help you out:
- Who is file's owner in your delegate's nib file?
If this object is your window controller or your document, then your
problem is pretty much solved. If it is not, look at how it gets
instantiated and if you can ask this object for a reference to your
document.
-jim
P.S. If you need more help (or just want to), consider answering these
questions:
- Is your drawer in its own nib file?
- How is your window controller instantiated?
- How is your drawer's file's owner instantiated?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.