Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sheet not attached to window II



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Sheet not attached to window II (From: Keary Suska <email@hidden>)
 >Re: Sheet not attached to window II (From: Adhamh Findlay <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.