Re: main window disappears on resize
Re: main window disappears on resize
- Subject: Re: main window disappears on resize
- From: Shane <email@hidden>
- Date: Sat, 9 Oct 2010 14:07:07 -0500
>>>> I have a document based application with a main window that, when I
>>>> try to resize the window, the window just completely disappears. The
>>>> application doesn't crash and I can open up another window by 'Project
>>>> --> New' in the main menu. And of course if I try to resize it, it
>>>> will disappear. And my debugger doesn't show anything when it
>>>> disappears. Any idea how to help track this problem down?
>>>
>>> Break on -[NSWindow orderOut:]?
>>
>> I did read the docs and it would seem to behave as the orderOut: says,
>> but I'm not calling orderOut: (except on a few sheets and panels, but
>> not here).
>
>
> I think Kyle is suggesting that you should break on orderOut: to catch whatever is taking the window off screen - it might not be you.
>
> This could also be a memory management issue. When windows are deallocated, they're taken off screen. Have you run the static analyzer lately?
>
Well, to the debugger, I clicked on "show breakpoints", then clicked
on "Double-Click for symbol" to add [NSWindow close] and also added
[NSWindow orderOut], but when I ran my app and resized the main
window, it disappeared without calling either of these. Any other
ideas?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden