Using function pointer member variables within an Objective-C Class -


(New to Objective C, but well-versed in C / C ++)

Currently I have an Objective-class and its number of variable variables will be Function Points. These function poinchers will only be modified by the class, but it can be used by other classes.

I'm not sure how to use Focus Points.

I am currently thinking that the solution is to declare public indicators according to the public public, as I think - I would be allowed to call them - to use the operator. It seems quite unsatisfactory for me, because function points are left to interfere, and this sound flies in the face of OOP

My next inclination is towards using @property, and It's only announcing reading that it looks looks I think I call them using the dot operator, using the recipient to get the function pointer Sector as the idea and then find it completely ridiculous.

Can the function pointer be used as a property? If so, then I will declare how this property is:

  Zero (* sort) (SET, int); Four * (* TOASCII) (card);  

I am feeling that I am missing little subtlety to declare them as assets.

I believe that you should be able to use function pointers as properties. You want to do this:

  @ property (nonatomic, readonly) four * (* TOCSII) (card);  

And then in your implementation:

  @Synthesize toASCII;  

then

  object.toASCII ();  

Comments