• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting a reference to the data model from a delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Getting a reference to the data model from a delegate
      • From: Bill Cheeseman <email@hidden>
References: 
 >Getting a reference to the data model from a delegate (From: Rob In der Maur <email@hidden>)

  • Prev by Date: Re: Why does this leak memory?
  • Next by Date: Re: Creating multiple images on the fly
  • Previous by thread: Getting a reference to the data model from a delegate
  • Next by thread: Re: Getting a reference to the data model from a delegate
  • Index(es):
    • Date
    • Thread