• 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: Restoring saved fileWrapper items problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Restoring saved fileWrapper items problem


  • Subject: Re: Restoring saved fileWrapper items problem
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 13 May 2013 18:14:41 +0200

You're prolly running afoul of the fact that the -read... call gets called before the NIB is loaded. In general, the recommendation is that you put your code to load the UI into a separate method, and keep the images in ivars. Then readXXX just sets the ivar, and the update UI method gets called in both windowControllerDidLoadNib and readXXX.

Loading the images directly and then keeping them in the views violates Model-View-Controller.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Restoring saved fileWrapper items problem (From: Peter Teeson <email@hidden>)

  • Prev by Date: Re: Displaying "Trebuchet MS" font
  • Next by Date: Re: Displaying "Trebuchet MS" font
  • Previous by thread: Restoring saved fileWrapper items problem
  • Next by thread: NSOutlineView View-based Layout issue
  • Index(es):
    • Date
    • Thread