• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
A Cocoa Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: A Cocoa Question
      • From: Rob Minnis <email@hidden>
  • Prev by Date: Re: Xcode with .jar file
  • Next by Date: Re: Get Info and Additional Compiler Flags bug
  • Previous by thread: Re: Xcode with .jar file
  • Next by thread: Re: A Cocoa Question
  • Index(es):
    • Date
    • Thread