Re: Sheet not attached to window II
Re: Sheet not attached to window II
- Subject: Re: Sheet not attached to window II
- From: Hasani Hunter <email@hidden>
- Date: Thu, 31 Jan 2008 10:28:15 -0600
Make sure that "Visible at Launch" is not checked for your sheet in
interface builder.
Hasani
On Jan 30, 2008, at 10:48 PM, Adhamh Findlay wrote:
On Jan 30, 2008, at 6:14 PM, Keary Suska wrote:
on 1/29/08 5:58 PM, email@hidden purportedly said:
[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.
But does [sheet window] return an initialized object?
Yup, and the sheet does display.
The even weirder thing is that I can replace the [NSApp
beginSheet...] with NSBeginAlertSheet() and the sheet appears
normally. The didEndSelector of that sheet does the [NSApp
beginSheet...] call and this new custom sheet is not attached to the
window either.
However, we use [NSApp beginSheet...] other places and it works fine.
Any help is appreciated, I'm lost. :-)
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
_______________________________________________
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