Re: sheet appears as normal window?
Re: sheet appears as normal window?
- Subject: Re: sheet appears as normal window?
- From: Andrew Merenbach <email@hidden>
- Date: Thu, 20 Mar 2008 20:28:49 -0700
Hi, Kevin,
Is [self window] defined at the time that you make the -beginSheet:...
call that you described to us? If the -window method returns nil or
NULL at that time, then you will see, I believe, the behavior that you
describe. You can test this with a call to NSLog().
Cheers,
Andrew
On Mar 20, 2008, at 8:19 PM, Kevin Dixon wrote:
I couldn't find any documentation on how to create a custom sheet's
view,
so I did it as a Panel.
I have the panel as an outlet of my primary window controller.
I then call beginSheet, as shown here
[NSApp beginSheet: uiAnalysisResultsSheet
modalForWindow:[self window]
modalDelegate:self
didEndSelector:
@selector(analysisResultsSheetDidEnd:returnCode:contextInfo:)
contextInfo: nil];
but the window appears as a Window, not as a sheet attached to my main
window. What is going on here? Thanks,
-Kevin
_______________________________________________
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