• 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
Question about Sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about Sheets


  • Subject: Question about Sheets
  • From: Simone Manganelli <email@hidden>
  • Date: Fri, 25 Jun 2004 12:14:04 -0700

Do sheets have to be attached to windows in the same nib file, or can sheets be attached to any window passed to NSApp's beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo: method? Currently I have an NSWindowController that contains a sheet in it's nib file, and it's passed a window from some outside source. What happens is the sheet simply appears on screen in the place where it's positioned in the nib file, not connected to the parent window that it's supposed to be attached to. Also, the sheet doesn't move around on screen when you move the parent window. It doesn't even seem to actually block the parent window from accepting mouse clicks, which sheets are supposed to do.

Am I doing something wrong, or is this just a consequence of trying to attach a sheet from one nib file to a parent window from a different nib file? Can programatically created sheets be attached to windows from any nib file?

Any help would be much appreciated.

-- Simone Manganelli
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Question about Sheets
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Getting mainMenu raises exception
  • Next by Date: Re: Question about Sheets
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #4410 - 15 msgs
  • Next by thread: Re: Question about Sheets
  • Index(es):
    • Date
    • Thread