Re: Centering a window ... not in the usual way!

2009-05-13 Thread Benjamin Stiglitz
> I am not sure of Mic's intent, but [window center] is only useful for the > main screen. If you need per-screen windows, I am not sure how to have the > OS do it. Given a few different resolutions though, it should not be hard to > deduce the OS positioning algorithm. For what it's worth: the ce

Re: Centering a window ... not in the usual way!

2009-05-13 Thread Trygve Inda
> On Wed, May 13, 2009 at 4:20 AM, Mic Pringle wrote: >> Hi, >> >> I'm working on an application that when first started you are >> presented with a small window showing a number of options. When any of >> these options are chosen, the window fades out the contentView whilst >> at the same time r

Re: Centering a window ... not in the usual way!

2009-05-13 Thread Jean-Daniel Dupas
So, do not animate the view frame, but the window frame and set the target frame origin to your window final position. Le 13 mai 09 à 16:29, Mic Pringle a écrit : Because the window grows and is animated as per my original post. If I called [window center] on it after the animation has run t

Re: Centering a window ... not in the usual way!

2009-05-13 Thread Mic Pringle
Because the window grows and is animated as per my original post. If I called [window center] on it after the animation has run there would be a final jerk/snap as it moves position. I need the rect of the centered window so that I can use it as part of the animation. -Mic 2009/5/13 Michael Ash

Re: Centering a window ... not in the usual way!

2009-05-13 Thread Michael Ash
On Wed, May 13, 2009 at 4:20 AM, Mic Pringle wrote: > Hi, > > I'm working on an application that when first started you are > presented with a small window showing a number of options. When any of > these options are chosen, the window fades out the contentView whilst > at the same time replacing

Re: Centering a window ... not in the usual way!

2009-05-13 Thread Mic Pringle
Hi Trygve, I had not thought of that. Does setting the alpha to 0 hide apply it to the entire window then and not just the contentView ? Thanks -Mic 2009/5/13 Trygve Inda : >> Hi, >> >> I'm working on an application that when first started you are >> presented with a small window showing a numb

Re: Centering a window ... not in the usual way!

2009-05-13 Thread Trygve Inda
> Hi, > > I'm working on an application that when first started you are > presented with a small window showing a number of options. When any of > these options are chosen, the window fades out the contentView whilst > at the same time replacing it with and fading in the new view. The > window al

Centering a window ... not in the usual way!

2009-05-13 Thread Mic Pringle
Hi, I'm working on an application that when first started you are presented with a small window showing a number of options. When any of these options are chosen, the window fades out the contentView whilst at the same time replacing it with and fading in the new view. The window also resizes to