Jump to content

fluid | fixed

smcguffee

smcguffee

Member Since 12 Aug 2012
Offline Last Active Aug 13 2012 07:44 PM
-----

Objective C/C++ Pointers using . ?

12 August 2012 - 08:25 PM

Hi,
I'm starting to get more comfortable using Objective C++ coming from a C/C++ background.
I'm just realizing one of the things that has been confusing me, so I'm wondering if anyone can help me figure it out.
Basically what I realized is that pointers in Objective C++ or Objective C can have . operators (?) to access members, but in C and C++, pointers need -> to access members. I notice that when I access my C and C++ members of objective C++ classes (?), I have to use . to access Objective C++ members (properties?), while simultaneously using -> to access C and C++ members. What is going on with this? What is the meaning of using a . on a pointer in Objective C++? Do I simply have to make pointers of objective C++ class pointers to get objects the way I think of them in C++?
Thanks in advance,
Sean

© 2013 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy