PDA

View Full Version : Using sheets




CEBison
Feb 15, 2013, 12:26 PM
I am writing a simple little program to learn the basic ins and outs of XCode and Cocoa. Right now, I'm trying to have pop-up sheets (like the open/save file dialogs), I'm calling:
[NSApp beginSheet: Panel modalForWindow: MainWindow modalDelegate:self didEndSelector:NULL contextInfo:nil];
and all that happens is that the panel does is pop up in the predetermined location.
The settings for Panel is attached.

I hope this is enough information.



xShane
Feb 16, 2013, 02:25 PM
I am writing a simple little program to learn the basic ins and outs of XCode and Cocoa. Right now, I'm trying to have pop-up sheets (like the open/save file dialogs), I'm calling:
[NSApp beginSheet: Panel modalForWindow: MainWindow modalDelegate:self didEndSelector:NULL contextInfo:nil];
and all that happens is that the panel does is pop up in the predetermined location.
The settings for Panel is attached.

I hope this is enough information.

Maybe this will help:

Link (http://stackoverflow.com/questions/8058653/displaying-a-cocoa-window-as-a-sheet-in-xcode-4-osx-10-7-2-with-arc).

CEBison
Feb 17, 2013, 02:24 PM
That DID help. Thanks loads! It is great to find a great community that is knowledgeable.