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 3483692
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:42:13+00:00 2026-05-18T10:42:13+00:00

I already googled for CFString isNaturallyRTL with 0 results. these are my classes: //in

  • 0

I already googled for “CFString isNaturallyRTL” with 0 results.

these are my classes:

//in .H
@interface myViewController : UIViewController {
UITextField *from;
UITextField *to;
NSString *fromText;
NSString *toText;
}

@property (nonatomic, retain) NSString* fromText;
@property (nonatomic, retain) NSString* toText;
@property (nonatomic, retain) UITextField *from;
@property (nonatomic, retain) UITextField *to;

//in .m
@synthesize from, to;
@synthesize fromText, toText;

viewDidLoad(...) {
  fromText = @"Roma";
  toText   = @"Lecce";
}

- (void) drawRoute {
  if ( ([[from text] length] > 2) && ([[to text] length] > 2) ) 
 {
  fromText = from.text;
  toText = to.text;
    [...]
  }
}

Now, i have a view that open on button touch tha contains two text boxes and a button. Like this.

- (void) drawRouteTextboxes {
 from = [[UITextField alloc] initWithFrame: [...] ];
 from.text = fromText;
 from.delegate = self;
 [ctr.view addSubview:from];
 [from release];

    to = [[UITextField alloc] initWithFrame: [...] ];

    [...]

    [searchButton addTarget:self action:@selector(drawRoute) forControlEvents: UIControlEventTouchUpInside];
}

It’s all correct, compile and run.

First time that i click drawRouteTextboxes, it opens my view with default text setted (“Roma” and “lecce”).
Second time, i open the view, edit textfield and call drawRoute. It’s ok.
The third time that i call drawRouteTextboxes it return me this runtime error:

*** -[CFString _isNaturallyRTL]: message sent to deallocated instance 0x3a8d140

I don’t know where is the problem…
Someone know a solution?
It’s the first time that i see this error!

thanks,
Alberto.

  • 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-05-18T10:42:13+00:00Added an answer on May 18, 2026 at 10:42 am

    It’s all correct, compile and run.

    If it was all correct, it would run without error. 😉

    This looks suspect:

    fromText = from.text;
    toText = to.text;

    If from.text and to.text are returning either autoreleased objects or objects that are later released, then the above doesn’t retain the strings and could easily lead to an over-release problem as you are seeing.

    Use self.fromText = from.text; instead.

    Note that NSString* properties should almost always be copy and not retain.

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

Sidebar

Related Questions

I already googled this and decided to ask here coz results are not that
I already googled around to find a solution for my need, with no success.
I have already googled and searched stackoverflow but I can find nothing related to
I googled,I binged,I already have seen the other duplicates here,but none of them work
Hi I want to have push notification in blackberry.I have already googled for the
First, I already googled but only found examples where a compressed file (say a
ok, I'm stumped.. yes, I've googled already and this time, it seems it is
I had already googled for an answer, but nothing happens... I need to change
Please help me with naive question (already googled, and tried a lot of variations,
I have already googled for this I have a Table with following structure in

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.