• 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: NSDocument's loadDataRepresentation called before the document UI is functional?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument's loadDataRepresentation called before the document UI is functional?


  • Subject: Re: NSDocument's loadDataRepresentation called before the document UI is functional?
  • From: John Randolph <email@hidden>
  • Date: Mon, 11 Aug 2003 13:44:55 -0700

On Monday, August 11, 2003, at 6:50 AM, Wade Tregaskis wrote:

Simply put, any UI-related code in loadDataRepresentation doesn't have any effect - text views which have their text storage updated don't reflect the change, tables won't change selected rows, etc etc.

How can I fix/get around this?

-loadDataRepresentation is called before -windowControllerDidLoadNib. The idea is that in -loadDataRepresentation, you should only deal with the model, not the view or controller. When -windowControllerDidLoadNib is called, the model should already be in place.

-jcr
_______________________________________________
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: NSDocument's loadDataRepresentation called before the document UI is functional?
      • From: Wade Tregaskis <email@hidden>
  • Prev by Date: Re: Referencing Files within a App
  • Next by Date: Re: Graceful Crash
  • Previous by thread: Re: Referencing Files within a App
  • Next by thread: Re: NSDocument's loadDataRepresentation called before the document UI is functional?
  • Index(es):
    • Date
    • Thread