> On Jun 14, 2015, at 04:56 , Maxthon Chan <[email protected]> wrote:
> 
> I actually don’t use C++ with Objective-C - in fact, I flat out hate it from 
> the half year being forced to use it in a CS course. Actually I even created 
> a rough Foundation clone and migrated almost all programming paradigms from 
> Objective-C to C++. Compare this:
> 
> CCArray *array = CCArray::alloc().init(object).autorelease();
> 
> and this:
> 
> NSArray *array = [[[NSArray alloc] initWithObject:object] autorelease];

Actually, that's now:

        NSArray* array = @[ object ];

-- 
Rick Mann
[email protected]



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to