Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Boxed Expressions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Boxed Expressions



On Apr 19, 2012, at 10:19 AM, Patrick Beard wrote:
// strings.
NSString *path = @(getenv("PATH"));
NSArray *pathComponents = [path componentsSeparatedByString:@":"];

Can this be shortened like this:

    NSArray *pathComponents = [@(getenv("PATH")) componentsSeparatedByString:@":"];

or is there some object typing magic done in first assigning @(getenv("PATH")) to an NSString variable?

-Nate

 _______________________________________________
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: 
 >Boxed Expressions (From: Patrick Beard <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.