Re: Assertion in writeToFile:ofType:
Re: Assertion in writeToFile:ofType:
- Subject: Re: Assertion in writeToFile:ofType:
- From: mmalcolm crawford <email@hidden>
- Date: Thu, 12 May 2005 23:39:17 -0700
On May 12, 2005, at 11:29 PM, Seth Willits wrote:
I'm having to completely customize all the saving behavior in my
app to support multiple documents per window (the entire document
architecture is not very multi-doc friendly)
Umm, it's not intended to be. The documentation makes the supported
architecture clear -- if you diverge significantly from that it's not
surprising that additional customisation is required or that you hit
"edge cases".
so I'm having to call:
[self saveToFile:[panel filename] saveOperation:NSSaveOperation
delegate:nil didSaveSelector:nil contextInfo:nil];
After displaying a modal save panel.
It not clear from this whether you're actually displaying the save
panel yourself or if you're relying on standard behaviour in the kit?
This works perfectly in 10.4, but in 10.3 I get this assertion:
*** Assertion failure in -[WBDocument writeToFile:ofType:],
AppKit.subproj/NSDocument.m:1105
Invalid parameter not satisfying: type
Which is odd. I don't override writeToFile:ofType: or call any
ofType: methods anywhere.
I'd *guess* that the type is not being set and is hence nil. You
might try overriding writeToFile:... to call super and insert a
"dummy" type...
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden