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