Re: Window Sheet
Re: Window Sheet
- Subject: Re: Window Sheet
- From: j o a r <email@hidden>
- Date: Wed, 19 Mar 2003 12:08:07 +0100
Make sure that the windows exist:
NSLog(@"myWindow: %@, %@", myWindow, [myWindow title]);
NSLog(@"mainWindow: %@, %@", mainWindow, [mainWindow title]);
...or:
[myWindow makeKeyAndOrderFront: nil];
[mainWindow makeKeyAndOrderFront: nil];
It's easy to forget to load them from the nib file, or make sure that
they have loaded completely, before trying to use them. You could also
have a problem with your outlets.
j o a r
On Wednesday, Mar 19, 2003, at 11:53 Europe/Stockholm, Suman Ganguly
wrote:
I have a window having two buttons, I want to use the window to be
popped up
as a sheet in my application window. Below I'm pasting the line of
code I'm
using -
[ [ NSApplication sharedApplication ] beginSheet: myWindow
modalForWindow:
mainWindow modalDelegate: self didEndSelector:
@selector(sheetDidEnd:returnCode:contextInfo:) contextInfo: NULL ];
After executing the line, the window doesn't appear as a sheet. I'll
be very
much grateful if anyone can tell me what I'm missing or any kind of
suggestion will be appreciated.
_______________________________________________
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: | |
| >Window Sheet (From: Suman Ganguly <email@hidden>) |