weird sheet problem
weird sheet problem
- Subject: weird sheet problem
- From: Dave Sopchak <email@hidden>
- Date: Mon, 15 Jan 2007 11:54:12 -0800
I have a sheet that doesn't display properly. The sheet code is
called directly from -awakeFromNib. For some reason, the sheet window
doesn't attach to the main window, it's just displayed next to it (as
it's laid out in IB). Even stranger, for sanity's sake, I switched
the main window and the sheet in the sheet calling code, and the main
window behaves properly as a sheet in this case!
I've checked the attributes of both of these windows in IB and tried
to set them to be identical, since my main window works as a sheet.
Does anyone know any attribute or condition that would prevent a
sheet from operating properly? I've used sheets many times and this
is the first time I've had this trouble.
Thanks for any and all.
Dave
- (void)awakeFromNib
{
[self showNewSerialSheet];
}
- (void)showNewSerialSheet
{
[NSApp beginSheet: serialPortWindow
modalForWindow:mainWindow
modalDelegate: self
didEndSelector: @selector(testEnd)
contextInfo: nil];
}
- (void)testEnd
{
NSBeep();
NSLog(@" sheet ended");
[serialPortWindow orderOut:self];
[self closeNewSerialSheet:self];
}
- (IBAction)closeNewSerialSheet:(id)sender
{
[NSApp endSheet:serialPortWindow];
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden