• 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 call on id
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to call on id


  • Subject: Re: How to call on id
  • From: David Blanton <email@hidden>
  • Date: Wed, 24 Feb 2010 20:55:58 -0700

Yeah!  2)  looks like the answer ... I  am trying now ... Thanks!

-db

On Feb 24, 2010, at 8:52 PM, Andrew Farmer wrote:

On 24 Feb 2010, at 19:43, David Blanton wrote:
I misspoke earlier.

What I want to do is access an an ivar in m_view such as m_cpp wher m_cpp is an instance of a C++ class and then call functions on m_cpp such as

m_view->m_cpp.Function()

but I get 'struct objc_object' has no member named 'm_cppr'

Your best bet is to either:

1. Declare m_cpp as @public in the class's @interface, cast m_view to the correct class, and access m_cpp as shown above, or - better yet -

2. Define an accessor method on the class and use it: [m_view mCppAccessorThing].Function();



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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 call on id (From: David Blanton <email@hidden>)
 >Re: How to call on id (From: David Blanton <email@hidden>)
 >Re: How to call on id (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: How to call on id
  • Next by Date: RE: Looking for info on anti-piracy and trial-mode techniques for my app . . .
  • Previous by thread: Re: How to call on id
  • Next by thread: Re: How to call on id
  • Index(es):
    • Date
    • Thread