Re: Window Sheet
Re: Window Sheet
- Subject: Re: Window Sheet
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 19 Mar 2003 12:17:34 +0100
On Wednesday, March 19, 2003, at 11:53 AM, Suman Ganguly wrote:
Hi All,
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.
Your code seems to be correct. ([ NSApplication sharedApplication ] can
be simplified to NSApp).
What you can do is checking that myWindow or mainWindow are not nil.
_______________________________________________
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>) |