Why is my NSWindow being released when it exits full screen?
2008-02-22 16:55:56.872 App[14059:10b] *** -[_NSFullScreenWindow _unlockViewHierarchyForDrawing]: message sent to deallocated instance 0x18728380
0x18728380 is my NSWindow - it's created from the Nib so I don't see anything my code could do to decrease its retain count.
Yet (msgSends is obtained by objc message tracing), the window is retained 27 times but released 29 times:
diciu$ grep NSFullScreenWindow /tmp/msgSends-25272 | grep "alloc"
+ _NSFullScreenWindow NSObject alloc
+ _NSFullScreenWindow NSObject allocWithZone:
- _NSFullScreenWindow NSWindow dealloc
- _NSFullScreenWindow NSWindow _deallocCursorRects
diciu$ grep NSFullScreenWindow /tmp/msgSends-25272 | grep "retain" | wc -l
27
diciu$ grep NSFullScreenWindow /tmp/msgSends-25272 | grep "release" | wc -l
29
Thanks for any pointers.
2008-02-22 16:55:56.872 App[14059:10b] *** -[_NSFullScreenWindow _unlockViewHierarchyForDrawing]: message sent to deallocated instance 0x18728380
0x18728380 is my NSWindow - it's created from the Nib so I don't see anything my code could do to decrease its retain count.
Yet (msgSends is obtained by objc message tracing), the window is retained 27 times but released 29 times:
diciu$ grep NSFullScreenWindow /tmp/msgSends-25272 | grep "alloc"
+ _NSFullScreenWindow NSObject alloc
+ _NSFullScreenWindow NSObject allocWithZone:
- _NSFullScreenWindow NSWindow dealloc
- _NSFullScreenWindow NSWindow _deallocCursorRects
diciu$ grep NSFullScreenWindow /tmp/msgSends-25272 | grep "retain" | wc -l
27
diciu$ grep NSFullScreenWindow /tmp/msgSends-25272 | grep "release" | wc -l
29
Thanks for any pointers.