Re: main window disappears on resize
Re: main window disappears on resize
- Subject: Re: main window disappears on resize
- From: Kyle Sluder <email@hidden>
- Date: Sat, 9 Oct 2010 13:55:00 -0700
On Sat, Oct 9, 2010 at 12:07 PM, Shane
<email@hidden> wrote:
> 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?
First, make sure you entered `-[NSWindow close]` and `-[NSWindow
orderOut:]` correctly. The preceding hyphens and the colon following
`orderOut` are important. You'll know that the breakpoint has been
resolved if the name of the library (AppKit) appears next to the
symbol.
If that doesn't get you where you need to be, break on -[NSWindow
dealloc], or temporarily replace your window's class with a subclass
on which you can override methods for debugging purposes.
--Kyle Sluder
_______________________________________________
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