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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:20:39+00:00 2026-06-13T13:20:39+00:00

I´m on Mac OS X and Xcode 4.5.2 When executing these lines: NSString *asSrcFileName

  • 0

I´m on Mac OS X and Xcode 4.5.2
When executing these lines:

NSString *asSrcFileName = @"chromebar.png"
NSString *asSrcExtName  = @".png"
NSString *asTempName    = [asSrcFileName stringByReplacingOccurrencesOfString:asSrcExtName withString:@""];

I get a strange view of my variables in the debugger. See rectangle:
enter image description here
I expected asTmp to be @”chromebar” after line three.
I´ve been using stringByReplacingOccurrencesOfString pretty often so far and have no idea what´s wrong. Somehow it looks like there is a unicode issue.

Anyone out there to shed some light on me?

  • 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-13T13:20:39+00:00Added an answer on June 13, 2026 at 1:20 pm

    Are you inspecting asSrcTempName after the variable has been initialized (the green line showing the current execution point is below the initialization)?

    Otherwise it’s probably only uninitialized memory and lldb is showing garbage from a previous run.

    I could not reproduce your problem in Xcode 4.5.1.

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

Sidebar

Related Questions

How do I get the command-line build tools installed with the current Xcode/Mac OS
I get the error from xcode (3.2.4)/gcc(4.0): /Users/admin/scm/audacity/mac/../src/toolbars/DeviceToolBar.cpp: In member function 'void DeviceToolBar::ShowInputDialog()': /Users/admin/scm/audacity/mac/../src/toolbars/DeviceToolBar.cpp:817:
I have installed Google Toolbox for Mac into Xcode and followed the instructions to
Is it possible to develop iPhone applications on Mac without Xcode?
Does the iPhone SDK include Xcode for Mac OS X development? Or do I
i am developing a phonegap project in mac os with xcode. in xcode if
My software is written in Qt 4.4.2 using XCode on Mac OS X 10.5.
In Xcode 3.2.1 on Mac OS X Snow Leopard, I open a project under:
In Xcode build ref: https://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW45 It says: ACTION Description: Identifier. Identifies the type of
I run Xcode 4.3 on a Mac 10.7.4 (Lion). I have all my resources

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.