Assertion in writeToFile:ofType:
Assertion in writeToFile:ofType:
- Subject: Assertion in writeToFile:ofType:
- From: Seth Willits <email@hidden>
- Date: Thu, 12 May 2005 23:29:26 -0700
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) so I'm having to call:
[self saveToFile:[panel filename] saveOperation:NSSaveOperation
delegate:nil didSaveSelector:nil contextInfo:nil];
After displaying a modal save panel. 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 have *NO* idea how to fix this. I've
managed to figure out a ton of other stuff, but this one baffles me.
I realize this method is deprecated in 10.4, but my app must support
10.3 so I have to use this. Ironically it doesn't work in 10.3 and
does in 10.4!
Seth Willits
----------------------------------------------------------
Freak Software - http://www.freaksw.com/
ResExcellence - http://www.resexcellence.com/realbasic/
----------------------------------------------------------
_______________________________________________
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