[SOLUTION] Displaying a sheet inside windowControllerDidLoadNib = no go ??
[SOLUTION] Displaying a sheet inside windowControllerDidLoadNib = no go ??
- Subject: [SOLUTION] Displaying a sheet inside windowControllerDidLoadNib = no go ??
- From: Jérome Foucher <email@hidden>
- Date: Tue, 18 Feb 2003 17:40:47 +0100
On mardi, fiv 18, 2003, at 17:14 Europe/Paris, Jirome Foucher wrote:
>
Hi,
>
>
Sorry if my question sounds stupid as I'm new to Cocoa ;o)
>
>
I've got a multi-window sample application.
>
>
The class MyDocument is based on NSDocument and overwrites the method
>
windowControllerDidLoadNib
>
>
Inside this method, I'd like to display a "Select folder" sheet. So
>
that each time the user creates a new document window, a sheet is
>
displayed and he has to select the folder he wants to begin working
>
on....
>
>
So I call beginSheetForDirectory:
>
>
What happens is that the Open dialog is correctly displayed, but not
>
as a sheet, but as a standalone modal dialog....
>
>
Am I doing something wrong ?
I'm answering to myself :
I forgot to call [window makeKeyAndOrderFront:nil]; before displaying
the sheet.
That works fine now !
Have a nice day all !
Jerome
_______________________________________________
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.