• 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
Re: sheet not attaching to parent?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sheet not attaching to parent?


  • Subject: Re: sheet not attaching to parent?
  • From: Scott Little <email@hidden>
  • Date: Tue, 24 Feb 2004 09:36:09 +0100

My impresison has always been that the awakeFromNib is called AFTER the creation of the window controller but BEFORE that actual window is drawn, therefore you're trying to run the sheet BEFORE its window appears. I believe you should put the sheet somewhere else, try the -windowDidLoad: selector on the windowController.

Scott Little
Netonomy  Empowering your customers through self-service

Tel: +336 14 48 65 20
Email: email@hidden

On 24 Feb, 2004, at 07:49, email@hidden wrote:

i have this code in my awakeFromNib

[NSApp beginSheet:regWindow modalForWindow:ABCWindow modalDelegate:self
didEndSelector:@selector(regSheetDidEnd:returnCode:contextInfo:)
contextInfo:NULL];

but for some strange reason it wont attach it just pops up before the
main window?

does anyone know what might cause this?
_______________________________________________
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.
_______________________________________________
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.

References: 
 >sheet not attaching to parent? (From: email@hidden)

  • Prev by Date: Re: Filtering tableview problems
  • Next by Date: Re: key value observing stops
  • Previous by thread: sheet not attaching to parent?
  • Next by thread: Files in a directory.
  • Index(es):
    • Date
    • Thread