Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8083321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:25:39+00:00 2026-06-05T17:25:39+00:00

I am working on an iOS app which is going to handle many documents

  • 0

I am working on an iOS app which is going to handle many documents of about 40-80k each in a core data datastore. For ease of data input, I put together a simple cocoa app that saves the contents of an NSTextView control to a transformable field in the store.

I’m then opening the saved store in my iOS app and having problems. When I try to use a UITextView control to access the fetched results from that field in the data store, the displayed text is a hex dump. I’m guessing that the NSTextView in the cocoa app is saving RTF text to the field, and the UITextView is expecting to get plain text.

I’m using a simple Master-Detail project for iPad right now to try and get at the data. Here’s the code for loading up data from the data store:

    self.detailDescriptionLabel.text = [[self.detailItem valueForKey:@"name"] description];
    self.detailTextView.text = [[self.detailItem valueForKey:@"text"] description];

When I run the app and look at the results, here’s what I get as the content of the detailTextView:

<7b5c7274 66315c61 6e73695c 616e7369 63706731 3235325c 636f636f 61727466 31313338 5c636f63 6f617375 62727466 3437300a 7b5c666f 6e747462 6c5c6630 5c667377 6973735c 66636861 72736574 30204865 6c766574 6963613b 7d0a7b5c 636f6c6f 7274626c 3b5c7265 64323535 5c677265 656e3235 355c626c 75653235 353b7d0a 5c706172 645c7478 3536305c 74783131 32305c74 78313638 305c7478 32323430 5c747832 3830305c 74783333 36305c74 78333932 305c7478 34343830 5c747835 3034305c 74783536 30305c74 78363136 305c7478 36373230 5c706172 6469726e 61747572 616c0a0a 5c66305c 66733234 205c6366 30205468 69732069 73207468 6520776f 726b696e 6720636f 70792e7d>

I’ve tried using an NSAttributedString to get the data, but the initWithRTFD:documentAttributes: method doesn’t appear to be available in iOS.

I honestly don’t care about it being RTF. I just want to get text back out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:25:41+00:00Added an answer on June 5, 2026 at 5:25 pm

    You don’t want to use the description method; this converts the NSData returned as your text key into the form you see as a hex dump. (If you want the actual content as a string, you can use something like [NSString initWithData:encoding:] to get the data back into a string.)

    But you probably don’t want to convert to a string, since I don’t think UITextView can display RTF data. (At least not in iOS 5). Instead, you could at least view the data in a UIWebView by passing the raw NSData to - [UIWebView loadData:MIMEType:textEncodingName:baseURL:].

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Core Data and I'm working on my first personal iOS app.
I'm working on an iOS App (FW: 5.0+ & ARC) which needs to update
I am working on an iOS app which make a movie using array of
I am working on an iOS app, and want to determine which type of
I'm working with a Core Data project in iOS 4.1 (targeting 3.1). When I
I'm working on an iOS app in which I need to implement a basic
I'm working on an iOS app which will need a server backend for users
I'm working on an iOS app where I want to load one view if
im working on a Spotify IOS app and i've been trying to get the
I'm working on an iOS web app and I have the viewport set to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.