Re: NSDocument's loadDataRepresentation called before the document UI is functional?
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.