• 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
RTF problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: problem with DO
  • Next by Date: Re: What's with these redundant methods ?
  • Previous by thread: Re: Debugging distributed objects
  • Next by thread: Pasteboard and... How to tell an application to paste or to copy...
  • Index(es):
    • Date
    • Thread