Re: main window disappears on resize
Re: main window disappears on resize
- Subject: Re: main window disappears on resize
- From: Joar Wingfors <email@hidden>
- Date: Sat, 9 Oct 2010 07:31:02 -0700
On 9 okt 2010, at 07.16, Shane wrote:
>>> 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?
j o a r
_______________________________________________
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