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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:33:53+00:00 2026-06-14T20:33:53+00:00

Alright, it’s been a long time since I’ve worked with pointers. And now I’ve

  • 0

Alright, it’s been a long time since I’ve worked with pointers. And now I’ve been writing .NET code for more than a decade so I haven’t had to deal with them. In fact, in .NET it’s really nice because if it’s not a value type then it’s clearly a reference type, or by definition a pointer.

So, in .NET when I declare a string it’s most certainly a pointer underlying because it’s a reference type:

string s = "Hello Mike!";

However, it appears that in Objective-C I can declare a string two different ways:

NSString* s = "Hello Mike!";
NSString s = "Hello Mike!";

Now, if I’m understanding this correctly the first declaration is very similar to the underlying declaration of a string in .NET, a pointer. But what exactly is the second?

Now bear in mind I may be way off base here because I’m just starting to dig into Objective-C, so please excuse my ignorance!

  • 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-14T20:33:55+00:00Added an answer on June 14, 2026 at 8:33 pm

    Coming from REALbasic to Objective-C was similar for me: they both use pointers as references to object instances, but in REALbasic that fact is implicit, whereas Objective-C is C and therefore must make it explicit. That fact, however, is really just an accident of notation. The implications, for things like assignment and comparison, are similar.

    You might be helped by reading the relevant entry from my book on this topic:

    http://www.apeth.com/iOSBook/ch03.html#_an_instance_reference_is_a_pointer

    (The fact that you don’t seem to understand yet how to form an NSString literal (it starts with an at-sign, e.g. @"hello", is secondary.)

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

Sidebar

Related Questions

Alright I'm pretty new to programming and stuff and I'm now trying to code
Alright. So I figure it's about time I get into unit testing, since everyone's
Alright stackoverflow, I've been working hours on solving an issue in javascript (writing in
Alright, so I am writing a JAR to be the back end implementation of
Alright so I have been looking around (on SO and Google) to see if
Alright, so I got this code for gluLookAt: lookAt = new Vector3f(-player.pos.x, -player.pos.y, -player.pos.z);
Alright, here I am again trying to write code from scratch and I can't
Alright, so I've been trying to implement a simple binary search tree that uses
Alright when I do the code: <script type = text/javascript > document.write((new Date).getTime()); </script>
Alright, I've been hacking around with GD Image for a couple of months, and

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.