Issue while calling run modal after showing a sheet
Issue while calling run modal after showing a sheet
- Subject: Issue while calling run modal after showing a sheet
- From: RameshPVK <email@hidden>
- Date: Fri, 6 Oct 2006 09:49:36 +0530
Hi All,
I have a small requirement. I am calling a sheet in my code. I
wanted the control to be in the same line until the sheet is closed.
I have written the code in the following way. Doing this , i am
unable to receive application events. Because , i have used [NSApp
runModalForWindow: myCustomDialog];. If i do not run the window as
modal, the control is going to the next line. Is there anyway i can :
- call a sheet
- have the control in the same line until the sheet is closed.
- also able to perform actions on NSApp.
- (void)showCustomDialog: (NSWindow *)window
// User has asked to see the dialog. Display it.
{
if (!myCustomDialog)
[NSBundle loadNibNamed: @"MyCustomDialog" owner: self];
[NSApp beginSheet: myCustomDialog
modalForWindow: window
modalDelegate: nil
didEndSelector: nil
contextInfo: nil];
[NSApp runModalForWindow: myCustomDialog];
// Dialog is up here.
[NSApp endSheet: myCustomDialog];
[myCustomDialog orderOut: self];
}
thanks,
Ramesh PVK
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden