• 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
Sheet not attached to window II
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sheet not attached to window II


  • Subject: Sheet not attached to window II
  • From: Adhamh Findlay <email@hidden>
  • Date: Tue, 29 Jan 2008 18:58:49 -0600

Hi All,

I saw a posting about this from November, but a solution wasn't posted and now I'm seeing this problem.

Here is the basic flow of the problem. I detect when a new document window is opened and want to use a sheet to help the user prepare the document for use. However, the sheet appears but its not stuck to the window. The sheet is a sheet and not a window because it is borderless, its just not in the right place...

Code:

MyController *sheet = [[MyController alloc] initWithDocument: [self document]];
NSLog([[self document] description]);
NSLog([[[self document] windowForSheet] description]);
NSLog([[[NSDocumentController sharedDocumentController] documents]description]);
[NSApp beginSheet:[sheet window] modalForWindow: [[self document] windowForSheet] modalDelegate: sheet didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) contextInfo:NULL];



Both the NSLog statements and gdb confirm that [self document] and [[self document] windowForSheet] return initialized objects.



Any ideas why this sheet is attached to the window? I'm running 10.5.1, and this is a Leopard only app.


Thanks,

Adhamh

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Sheet not attached to window II
      • From: Keary Suska <email@hidden>
  • Prev by Date: Layer-Backed NSOpenGLView
  • Next by Date: Re: How do I rotate an image?
  • Previous by thread: Layer-Backed NSOpenGLView
  • Next by thread: Re: Sheet not attached to window II
  • Index(es):
    • Date
    • Thread