• 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
[SOLUTION] Displaying a sheet inside windowControllerDidLoadNib = no go ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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.

References: 
 >Displaying a sheet inside windowControllerDidLoadNib = no go ?? (From: Jérome Foucher <email@hidden>)

  • Prev by Date: Re: Get path to user preference folder, updated
  • Next by Date: Re: loading nib from jnilib - now java from cocoa!
  • Previous by thread: Displaying a sheet inside windowControllerDidLoadNib = no go ??
  • Next by thread: AddressBook searching broken in 10.2.4
  • Index(es):
    • Date
    • Thread