A Cocoa Question
A Cocoa Question
- Subject: A Cocoa Question
- From: Rob Minnis <email@hidden>
- Date: Tue, 16 Dec 2003 11:44:41 -0600
I have a Cocoa app and am in the process of implementing save
functionality. NSDocument saveDocument: (via the standard responder
chain) is able to bring up the Save panel but, if I try to expand it, I
get the following assertion:
Nav.subproj/NSSavePanelLayout.m:540: failed assertion
`_auxiliaryStorage->_moveHelper != nil'
It appears that the panel is trying to open as a sheet but is not
attached to a window. Is there something I'm supposed to configure?
I've tested it with a handful of different windows and panels as key
and I always get the same result. My window handling code is a little
strange in that I do not create any window controllers by default.
They are all created as a result of async operations in other threads
(the actual creation, however, is delayed to the main thread).
I have other locations in my code that directly bring up the open panel
(nothing that directly uses the save panel yet) and they don't seem to
have any problems (the error occurs whether or not the code that uses
the open panel is executed).
If I add in a simple test:
- (void)showWindows
{
NSSavePanel *panel = [NSSavePanel savePanel];
[panel runModal];
}
The test panel works correctly but the NSDocument spawned panel still
fails.
Any ideas where I might start looking?
TIA,
Rob Minnis
email@hidden
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.