You probably forgot to connect your window controller's "window"
outlet in Interface Builder, so [self window] is nil. If the window
for the sheet is nil, you get a window instead.
If it's not that, make sure you're not doing this until after
awakeFromNib, so that, again, the window outlet is set up.
Also, a panel is fine to use for this.
There's lot's of sample code on this sort of thing at http://developer.apple.com
, as well as in your /Developer/Examples folder.
- d
On Mar 20, 2008, at 11: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 (Cocoa-dev@lists.apple.com)
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/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]