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.
Yes, this was it, I wasn't aware of that, I assumed window was a method
that got the associated window, ala Win32.
On Fri, Mar 21, 2008 at 2:39 AM, Kevin Dixon [EMAIL PROTECTED] wrote:
Yes, this was it, I wasn't aware of that, I assumed window was a method
that got the associated window, ala Win32.
When you're working in Cocoa you *must* keep in mind that there is
very little of this kind of magic state
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
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