• 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: sending data to a view not yet displayed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sending data to a view not yet displayed


  • Subject: Re: sending data to a view not yet displayed
  • From: Shane <email@hidden>
  • Date: Sat, 15 Jan 2011 16:56:04 -0600

> If this is iOS, -initWithNibName doesn't actually load the nib immediately, so the outlets won't be connected until such time as the nib is loaded, which doesn't happen until something tries to access the view. Instead, you should initialize your outlets' data in the -viewDidLoad method. While you could force the nib to be loaded by accessing the view property, in low-memory situations, the view controller will unload the view behind your back, so I would recommend doing your initialization in -viewDidLoad.
>
>

Just a quick reply to say this isn't iOS while I mull over your response.
_______________________________________________

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

  • Follow-Ups:
    • Re: sending data to a view not yet displayed
      • From: Shane <email@hidden>
References: 
 >sending data to a view not yet displayed (From: Shane <email@hidden>)
 >Re: sending data to a view not yet displayed (From: Dave Carrigan <email@hidden>)

  • Prev by Date: Re: sending data to a view not yet displayed
  • Next by Date: Core Data Model One-To-Many question/help
  • Previous by thread: Re: sending data to a view not yet displayed
  • Next by thread: Re: sending data to a view not yet displayed
  • Index(es):
    • Date
    • Thread