• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to access a c++ vector member of an objc class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Shawn Erickson <email@hidden>
  • Date: Wed, 30 May 2007 07:47:50 -0700


On May 30, 2007, at 7:40 AM, Shawn Erickson wrote:


On May 30, 2007, at 6: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).

Do you have a method called "desc"? You didn't list one.

If you want access it directly (which I assume you may given use of @public) did you try myTrackInstance.desc? ...but I would follow the advice that Shamyl gave you and use an accessor method.

Ooops sorry wrong notation... myTrackInstance->desc is what you would use (no comment on the other).


-Shawn
_______________________________________________

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


References: 
 >how to access a c++ vector member of an objc class? (From: "julien ricard" <email@hidden>)
 >Re: how to access a c++ vector member of an objc class? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Window freezes app
  • Next by Date: NSArray or MutableArray Null/NIL placeholder
  • Previous by thread: Re: how to access a c++ vector member of an objc class?
  • Next by thread: Re: how to access a c++ vector member of an objc class?
  • Index(es):
    • Date
    • Thread