Re: sheet not attaching to parent?
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.