Hi Matt Thanks for the advice.
So, if I got it right, I have to remove the second controller from my main
window nib file and put it elsewhere. Otherwise, it gets created at the same
time as the other. I did that to go around a problem with the Navigation
Controller. This guy doesn't get loaded when you put it alone in a nib and then
initialize it by loading the nib file. Pretty strange...
So, with your suggestion, I should keep the navigator interface with the main
xib and create / release the other view when needed.
Got you right?
Thanks a lot!
Eric.
On 2010-07-25, at 15:39, Matt Neuburg wrote:
>> Everywhere, it is said that it should be handled automatically when adding
>> the
> subview to the window but it doesn't seem to work, at least not with my
> controller layout.
>
> My experience is that you have to wait until the window's primary subview
> has itself rotated before you do any further interface configuration. I add
> code like this to my main subview's controller:
>
> - (void)didRotateFromInterfaceOrientation:
> (UIInterfaceOrientation)fromInterfaceOrientation {
> if (!didInitialSetup) { // once, at startup: set up interface
> didInitialSetup = YES;
> [self setUpInterface];
> }
> }
>
> That way I don't create the nested interface until the main view has settled
> down into its initial rotation. Otherwise, if I do things too soon, x and y
> are reversed and everything is wonky after that. This trick has really
> helped me with autorotation, though I don't know if it will be useful in
> your case.
>
> m.
>
> --
> matt neuburg, phd = [email protected], <http://www.tidbits.com/matt/>
> A fool + a tool + an autorelease pool = cool!
> AppleScript: the Definitive Guide - Second Edition!
> http://www.tidbits.com/matt/default.html#applescriptthings
>
>
>
Eric Giguere
[email protected]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]
