Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: declaring objects, what is the preferred way? NSString* myString or NSString *myString ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: declaring objects, what is the preferred way? NSString* myString or NSString *myString ?



On Mon, Oct 6, 2008 at 9:56 AM, Ondřej Čada <email@hidden> wrote:

> Myself, I strongly recommend the latter, for the former tends to lead to
> things like
>
> NSString* a,b,c;

Of course under current implementations of Objective-C the above
wouldn't compile since you cannot create objects on the stack (or
"inlined" in a class).

-Shawn
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >declaring objects, what is the preferred way? NSString* myString or NSString *myString ? (From: "phil swenson" <email@hidden>)
 >Re: declaring objects, what is the preferred way? NSString* myString or NSString *myString ? (From: Ondřej Čada <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.