Thanks.  That seems to have solved the immediate problem.  However, it
doesn’t help me understand why this thing is getting confused about where
its windows should be.  I looked at the "Handling Window Restoration"
methods, but I think it will take awhile to figure out how to use them.


On 5/30/12 1:27 PM, "Conrad Shultz" <con...@synthetiqsolutions.com> wrote:

> On 5/30/12 10:52 AM, Gordon Apple wrote:
>> > (10.7)  I have a small (but resizable) initial window that is the only one
I
>> > want open on the main screen when the document is launched.  The app has
>> > numerous other document windows, one of which is normally full-screen on a
>> > second monitor.  If I quit (usually through xcode while debugging) and
>> > re-launch the program, the initial window appears on the second screen,
>> > enlarged even beyond that screen¹s dimensions.  It totally ignores the nib
>> > size and even an explicit size I give it when creating in
>> > makeWindowControllers.  This seems to be some kind of a ³feature² (a la MS)
>> > of 10.7  How can I stop this annoying behavior and always get the correct
>> > specified size, and on the main screen?
>> > 
>> > I have another window that seems to also have an affinity for the second
>> > screen, but I managed to defeat that by explicit coding.
> 
> This sounds like it might be automatic window restoration intervening at
> an inopportune time.
> 
> To test, try checking the "Launch application without state restoration"
> option in Edit Scheme->Run->Options.
> 
> If this is indeed the problem and you want to change this behavior
> permanently, take a look at the NSWindow methods documented under
> "Handling Window Restoration" in the class reference.
> 


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to