Re: Manipulating Windows Question
Re: Manipulating Windows Question
- Subject: Re: Manipulating Windows Question
- From: email@hidden
- Date: Mon, 11 Mar 2002 12:02:40 -0800
Is there a way to resize/relocate windows BEFORE they are visible on the
screen? I'm instantiating the windows from nib files, and whenever I try
to [dfxPropPanel setFrame:newWindowLoc display:YES]; with new origins,
it doesn't work unless the window is already visible on the screen. Of
course this works, but it looks really ugly, as the window jumps from
it's initial location to the new one.
This should work fine, and in fact I do it all the time. Are you sure
you're not trying to move the window before you've even loaded the nib?
Have you tried doing an NSLog of the window's frame before and after you
try to set it, to see whether it has taken effect?
You might try passing NO for display:, since you don't in fact want
your window to redisplay, as it's not visible. It's possible this is
causing the whole operation to fail, although I think that would be a
bug worthy of logging...
Ben Haller
Stick Software
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.