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: Shamyl Zakariya <email@hidden>
- Date: Wed, 30 May 2007 10:19:13 -0400
You could try manually writing an accessor which returns a reference.
- (std::vector< float > &) desc;
email@hidden
"this is, after all, one of those movies where people spend a great
deal of time looking at things and pointing."
From a review of _Fantastic Voyage_
On May 30, 2007, at 9:08 AM, julien ricard wrote:
hi,
how can I access the c++ vector in an instance of the class shown
below?
[myTrack desc] seems not to return a vector (I thought I could do
things like [myTrack desc][i]=5.0).
thanks
Jul
******************************************
@interface Track : NSObject
{
@public
std::vector <float> desc;
@protected
NSString * filename;
int nDesc;
}
*******************************************
_______________________________________________
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
_______________________________________________
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