Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Object instantiation question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Object instantiation question



HI All,

So I instantiate and object like:

MyObject *o = [[MyObject alloc] init];

Then I have methods to call on it to do what I want.

like:

[o parseFile: x,y,z];
[o.verifyFileConents: a,b,c];


in CPP I would have done:

o.parseFile("string 1 passed in", "string 2 passed in", etc..);

in Obj-C is it:

[o parseFile:@"string 1 passed in", @"string 2 passed in"];

so for Bools, I would not put @TRUE, but just TRUE

Thanks for the clarification!
_______________________________________________
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




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.