Re: how to access a c++ vector member of an objc class?
Re: how to access a c++ vector member of an objc class?
- Subject: Re: how to access a c++ vector member of an objc class?
- From: Erik Buck <email@hidden>
- Date: Wed, 30 May 2007 07:30:11 -0700 (PDT)
You need to learn how to write Objective-C before you are likely to have success mixing C++ with Objective-C.
Objective-C uses the [] notation to indicate that a message is being sent. You have declared a public instance variable and want to access it directly without sending a message. You probably want
myTrack->desc[i]=5.0;
I'll explain why you philisophically don't want to directly access a public instance variable some other time.
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Introduction/chapter_1_section_1.html
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden