• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
weird sheet problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: weird sheet problem
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Objective-C Forum
  • Next by Date: Re: OT: Objective-C Forum
  • Previous by thread: Re: Add/Remove table column dynamicly
  • Next by thread: Re: weird sheet problem
  • Index(es):
    • Date
    • Thread