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 <michael....@gmail.com>: > On Wed, May 13, 2009 at 4:20 AM, Mic Pringle <micprin...@gmail.com> 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 it with and fading in the new view. The >> window also resizes to accommodate the new view. This is all achieved >> using NSViewAnimation and works and looks great. However, I have one >> small issue. >> >> What I'd like is for the resulting window (new size, containing new >> view) to be centered on the screen, in the sameplace as if I'd called >> [window center] on it. > > So... why can't you use [window center]? > > Mike > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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/micpringle%40gmail.com > > This email sent to micprin...@gmail.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com