Skip navigation.
 
mlRe: NSWindow and autorelease with dynamic binary
FROM : Kyle Sluder
DATE : Tue Jan 15 22:40:48 2008

On Jan 15, 2008 3:17 PM, Wesley Smith <wesley.<email_removed>> wrote:
> What really puzzles me is the difference between manually
> closing the window and procedurally closing the window.  The former
> works, the latter crashes.  If all the manual method does is trigger
> [win close], then I am doing the exact same thing procedurally and
> there should be no difference, but this is not the case.  I can't find
> any docs on what might be different between the two.  Any pointers?


What happens if you use -[NSWindow performClose:] instead?  That's the
action associated with the standard close button.

Maybe the window's delegate is disappearing from under its feet while
it's trying to ask whether the window should be closed?

--Kyle Sluder

Related mailsAuthorDate
mlNSWindow and autorelease with dynamic binary Wesley Smith Jan 15, 11:18
mlRe: NSWindow and autorelease with dynamic binary John Stiles Jan 15, 18:23
mlRe: NSWindow and autorelease with dynamic binary Wesley Smith Jan 15, 19:04
mlRe: NSWindow and autorelease with dynamic binary j o a r Jan 15, 20:14
mlRe: NSWindow and autorelease with dynamic binary Wesley Smith Jan 15, 20:36
mlRe: NSWindow and autorelease with dynamic binary John Stiles Jan 15, 20:38
mlRe: NSWindow and autorelease with dynamic binary Wesley Smith Jan 15, 21:17
mlRe: NSWindow and autorelease with dynamic binary Kyle Sluder Jan 15, 22:40