-[NSApp orderOut:] leaves custom sheet in -orderedWindows
-[NSApp orderOut:] leaves custom sheet in -orderedWindows
- Subject: -[NSApp orderOut:] leaves custom sheet in -orderedWindows
- From: Jerry Krinock <email@hidden>
- Date: Sat, 05 May 2012 10:27:56 -0700
Mac app here, 10.7.
• Show a custom sheet (window) on a document window.
• Send it an -orderOut:
• Send [NSApp endSheet:returnCode:]
Expected Result:
• Sheet should be completely removed from [NSApp orderedWindows].
Actual Result:
• It is moved to the end of [NSApp orderedWindows].
This sheet has isReleasedWhenClosed:NO and is subclassed directly from NSWindow, not NSPanel. However, I don't think that matters, unless NSApp is watching its retainCount, which would be turning the world upside down.
What is necessary to get rid of a custom sheet, for good?
Thanks
Jerry Krinock
_______________________________________________
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