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
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 mails | Author | Date |
|---|---|---|
| Wesley Smith | Jan 15, 11:18 | |
| John Stiles | Jan 15, 18:23 | |
| Wesley Smith | Jan 15, 19:04 | |
| j o a r | Jan 15, 20:14 | |
| Wesley Smith | Jan 15, 20:36 | |
| John Stiles | Jan 15, 20:38 | |
| Wesley Smith | Jan 15, 21:17 | |
| Kyle Sluder | Jan 15, 22:40 |






Cocoa mail archive

