• 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: 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

  • Prev by Date: Re: how to access a c++ vector member of an objc class?
  • Next by Date: Re: how to access a c++ vector member of an objc class?
  • Previous by thread: Re: how to access a c++ vector member of an objc class?
  • Next by thread: refreshing core data controller
  • Index(es):
    • Date
    • Thread