• 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
NSCharacterSet Parsing MS Word 97 files? <Newbie>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCharacterSet Parsing MS Word 97 files? <Newbie>


  • Subject: NSCharacterSet Parsing MS Word 97 files? <Newbie>
  • From: Vince Ackerman <email@hidden>
  • Date: Mon, 4 Jul 2005 09:37:30 -0700

I need to parse lengthy MS Word 97 documents. I have read the file in as an NSString but need to filter out all the extraneous characters except the actual text. I need to see all the standard keyboard characters and (hopefully/eventually) parse out the information into a Core Data database. I can achieve this using Word to save the file as straight Text, but don't want the end user to have to do this to each document every time. I was hoping there was a way to do it programmatically without a lot of work.

Is there a way to copy this string to another string with NSCharacterSet or NSScanner? Or perhaps a better way to open and read the file into a NSString without the MSWord encoding? I don't fully understand what NSCharacterSet will filter, and I don't want to alter the actual visible text in the file.

Any ideas would be greatly appreciated! Perhaps someone's got a snippet of code so I don't have to re-invent this wheel?

 I'm a total amateur, so go easy on me....  : )


Vince _______________________________________________ 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: NSCharacterSet Parsing MS Word 97 files? <Newbie>
      • From: j o a r <email@hidden>
    • Re: NSCharacterSet Parsing MS Word 97 files? <Newbie>
      • From: Ken Tozier <email@hidden>
  • Prev by Date: Re: Radar/Bug Reporter data base is screwed?
  • Next by Date: Reading data from an NSTask
  • Previous by thread: date issue
  • Next by thread: Re: NSCharacterSet Parsing MS Word 97 files? <Newbie>
  • Index(es):
    • Date
    • Thread