• 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
Assertion in writeToFile:ofType:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Assertion in writeToFile:ofType:
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Help on error : Unknown class `XXXX' in nib file, using `NSObject' instead
  • Next by Date: Re: Assertion in writeToFile:ofType:
  • Previous by thread: Help on error : Unknown class `XXXX' in nib file, using `NSObject' instead
  • Next by thread: Re: Assertion in writeToFile:ofType:
  • Index(es):
    • Date
    • Thread