• 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
Re: Is @"constantstring" pointer equal to @"constantstring" aguarantee?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is @"constantstring" pointer equal to @"constantstring" aguarantee?


  • Subject: Re: Is @"constantstring" pointer equal to @"constantstring" aguarantee?
  • From: "Kyle Sluder" <email@hidden>
  • Date: Thu, 27 Mar 2008 22:59:51 -0400

On Thu, Mar 27, 2008 at 10:55 PM, Jeff Laing <email@hidden> wrote:
>  What confuses me is that people keep talking about @"constant" as though
>  it were a 'string constant'
>
>  Its not, it's an Objective-C object that you can send messages to.
>  [snip]
>  What is the subtlety here that I must be missing?

@"" strings are actually instances of an immutable private NSString
subclass.  I think it's called _NSConstantString or some such.  Of
course this is an implementation detail.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Is @"constantstring" pointer equal to @"constantstring" aguarantee?
      • From: Jens Alfke <email@hidden>
References: 
 >Re: Is @"constantstring" pointer equal to @"constantstring" a guarantee? (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: Is @"constantstring" pointer equal to @"constantstring" a guarantee?
  • Next by Date: embed screen sharing in a cocoa app?
  • Previous by thread: Re: Is @"constantstring" pointer equal to @"constantstring" a guarantee?
  • Next by thread: Re: Is @"constantstring" pointer equal to @"constantstring" aguarantee?
  • Index(es):
    • Date
    • Thread