RTF problem
RTF problem
- Subject: RTF problem
- From: Hasan Diwan <email@hidden>
- Date: Tue, 22 Apr 2003 16:11:45 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I can save the RTF fine (verified by opening it in TextEdit), but I
can't retrieve a file in my own application.
loadDataRepresentation:ofType is included below. I'm sure this has been
asked before, but I can't seem to access the mailing list archives.
Thanks for the help!
- - (BOOL)loadDataRepresentation:(NSData *)docData ofType:(NSString
*)docType {
[document replaceCharactersInRange:NSMakeRange(0,[[document
textStorage] length] - 1) withRTF:docData];
return YES;
}
Hasan Diwan {
http://ibn.com/~hdiwan}
OpenPGP Fingerprint: 275D 0E84 550C D92A 4A56 732C 8528 2579 E6E9 4842
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)
iD8DBQE+pcw6hSgleebpSEIRApCOAKCMfHYOpWL/1SDGBsoqpeMMLHKNcACdFn+G
S1S/sBAx3Lpmk32EcXrPhZ0=
=mp4k
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.