• 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
No parent window for sheets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No parent window for sheets?


  • Subject: No parent window for sheets?
  • From: Paul Kim <email@hidden>
  • Date: Sat, 8 Mar 2008 16:56:00 -0500

I always assumed that sheets had a child-parent relationship with the window they were attached to. In my little test, calling -parentWindow on the sheet returns nil. The "parent" window does not have any child windows but -attachedSheet does return the sheet.

As for why this matters, I was trying to determine if a window was a sheet. While -isSheet seems to work, if you read the documentation you'll see that it's defined rather oddly; it would probably be more accurately named -wasEverASheet. Thus, I was hoping to instead to get the parent's attached sheet and compare it to the current window. In the end not a big deal. My main concern is that -isSheet seems to leaves the door open for some odd edge cases.

Thanks,

Paul Kim

_______________________________________________

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: No parent window for sheets?
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: 10.5.2 release notes?
  • Next by Date: NSUserDefaults and mutability
  • Previous by thread: Re: Glyph Generator & hiding glyphs -> _NSBlockNumberForIndex() errors
  • Next by thread: Re: No parent window for sheets?
  • Index(es):
    • Date
    • Thread