• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
-[NSApp orderOut:] leaves custom sheet in -orderedWindows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[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


  • Follow-Ups:
    • Re: -[NSApp orderOut:] leaves custom sheet in -orderedWindows
      • From: Sean McBride <email@hidden>
    • Re: -[NSApp orderOut:] leaves custom sheet in -orderedWindows
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Strange issue in stroking a bezier path
  • Next by Date: Re: Strange issue in stroking a bezier path
  • Previous by thread: Re: NSView + NSScrollView, not scrolling
  • Next by thread: Re: -[NSApp orderOut:] leaves custom sheet in -orderedWindows
  • Index(es):
    • Date
    • Thread