I'm working on learning Cocoa and Objective-C, and I'm using the Hillegass book. I haven't gotten very far, but I've run into a question I haven't seen answered yet, and I haven't found any explanation as I've searched on the web.
In the headers, when I'm defining attributes, I'm looking at examples like
IBOutlet NSTextField *textField
or
NSCalendarDate *today
but I also see
int firstNumber
and
float secondNumber
I'm guessing that I need to define a point to objects but I can define variables directly as integer and floats, and I'm looking for confirmation of this assumption. Also, is there a list that gives the variable types that are used directly and not as pointers?
And I apologize if I'm not using the right terminology (and feel free to correct my grammar). I've got lots of programming experience with about 30-40 languages, but this is the first I've done in the C family.
In the headers, when I'm defining attributes, I'm looking at examples like
IBOutlet NSTextField *textField
or
NSCalendarDate *today
but I also see
int firstNumber
and
float secondNumber
I'm guessing that I need to define a point to objects but I can define variables directly as integer and floats, and I'm looking for confirmation of this assumption. Also, is there a list that gives the variable types that are used directly and not as pointers?
And I apologize if I'm not using the right terminology (and feel free to correct my grammar). I've got lots of programming experience with about 30-40 languages, but this is the first I've done in the C family.