Re: sending data to a view not yet displayed
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