Reputation: 19507
Does anyone know where I can find documentation about what the asterisk before variables is used for. I don't understand it and it's starting to become a problem because I have noticed you don't need it for all types for e.g. BOOL doesn't return it.
Upvotes: 0
Views: 1719
Reputation: 150745
It's C notation for a pointer.
You don't need it for a BOOL because it is not an object and so it isn't passed by reference
Have a look at the Introduction to Objective-C part of the documentation.
Upvotes: 3