• 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: Newbie coming to Cocoa from the world of C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie coming to Cocoa from the world of C++


  • Subject: Re: Newbie coming to Cocoa from the world of C++
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 5 Mar 2003 14:44:50 -0800

On Wednesday, March 5, 2003, at 02:36 PM, Marcel Weiher wrote:


3) When using the @ sign in front of some quoted text, that
automatically converts that text into an NSString?

To be precise, the compiler boils it down into a function call that returns a member of a private NSString subclass. There's a compiler option to let you choose the class to use for constant strings.

I thought it simply compiled a direct referene to a statically allocated instane of said NSString subclass. Has this changed, or am I simply delusional?

I may be mistaken on the specifics. I do know that there's a compiler switch to select the constant string class, though.

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Newbie coming to Cocoa from the world of C++
      • From: Marcel Weiher <email@hidden>
References: 
 >Re: Newbie coming to Cocoa from the world of C++ (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Re: Newbie coming to Cocoa from the world of C++
  • Next by Date: Re: Newbie coming to Cocoa from the world of C++
  • Previous by thread: Re: Newbie coming to Cocoa from the world of C++
  • Next by thread: Re: Newbie coming to Cocoa from the world of C++
  • Index(es):
    • Date
    • Thread