Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Problems centering window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems centering window



Thanks joar, that's fixed it nicely.

It hadn't occurred to me to look at something like that!

Mike.

On 20 May 2006, at 11:41AM, j o a r wrote:


On 20 maj 2006, at 11.04, Mike Abdullah wrote:

I have tried calling [[self window] center] at various points in the window controller subclass - windowDidLoad, loadWindow, showWindow, but with all of them I occasionally get a slight visual artifact whereby the window appears in its original location and immediately "jumps" to the centre of the screen.

You probably have the "Visible at launch time" checkbox enabled in the nib file. If that's the case, I suggest you disable it. It's mostly useful for simple single-window applications, and not for windows controlled by a window controller.


j o a r



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Problems centering window (From: Mike Abdullah <email@hidden>)
 >Re: Problems centering window (From: j o a r <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.