Delayed performance is not appropriate for something like this, because that fact that your view was just loaded is not a guarantee that it's about to be added to the view hierarchy. Delayed performance should not be used as a haphazard crutch because it seems to make a given problem go away. It should only be used when the problem and the purpose of the delayed perform are both well understood.
Luke Sent from my iPad On Jan 16, 2011, at 6:46 PM, Matt Neuburg <[email protected]> wrote: > On Sun, 16 Jan 2011 13:47:06 -0800, G S <[email protected]> said: >> On Sun, Jan 16, 2011 at 11:47 AM, Luke Hiesterman <[email protected]> wrote: >>> viewDidLoad is called the first time the view property of the vc is >>> accessed - that's when loading happens. There is no guarantee that the view >>> is in a window at that time, and presenting a modal vc on a vc whose view >>> is not in a window does not make sense. Perhaps viewDidAppear is what you >>> were looking for. > > Or just use delayed performance. I use delayed performance a *lot*. Like > whipped cream, it covers a multitude of sins. m. > > -- > matt neuburg, phd = [email protected], <http://www.apeth.net/matt/> > A fool + a tool + an autorelease pool = cool! > AppleScript: the Definitive Guide - Second Edition! > http://www.apeth.net/matt/default.html#applescriptthings_______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com > > This email sent to [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
