• 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
Question regarding NSDocument loading order...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question regarding NSDocument loading order...


  • Subject: Question regarding NSDocument loading order...
  • From: Darren Ford <email@hidden>
  • Date: Sat, 11 Oct 2003 01:05:16 +1000

Hi all,

I have an NSDocument inherited class (in a multiple document application), and I'm attempting to add 'Open...' file functionality, which should open a new window and populate the UI elements with the data from the file.

My question is, the 'readFromFile' method on my document class gets called before the connections are made to the ui elements in the nib (eg. NSTextField outlets etc. are nil). Since the data i'm loading from the file needs to be displayed on the ui, at which point (or in which overridden method) should i be populating the outlets to display the data in the associated window?

Or, am I going around this in entirely the wrong way?

Thanks in advance...

Darren.
_______________________________________________
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.

  • Prev by Date: Re: Drag out
  • Next by Date: Re: Multiple Threaded Windows
  • Previous by thread: ANN: PyObjC 1.0
  • Next by thread: Need some direction with a .palette can you help
  • Index(es):
    • Date
    • Thread