Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Learning objective-c please help!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Bill McEnaney" data-source="post: 1059943" data-attributes="member: 157499"><p>I don't know Objective-C. But in "variable.variableName" maybe "variable" is a the name of a structured variable that contains a component called "variableName."</p><p></p><p>In Pascal, you can define a record type, Pascal's struct, if you will, by writing something like this:</p><p></p><p>[code][B]type[/B] Car_Type =</p><p> [B]record[/B]</p><p> Make: String;</p><p> Model: String;</p><p> Year: integer</p><p> [B] end[/B];[/code]</p><p></p><p>Then, if, say, My_Car, is a variable of that type, "My_Car.Make" stands for the My_Car record's "Make" component, "My_Car.Model" stands for the My_Car variable's "Model" component, and "My_Car.Year" stands for that variable's "Year" component.</p></blockquote><p></p>
[QUOTE="Bill McEnaney, post: 1059943, member: 157499"] I don't know Objective-C. But in "variable.variableName" maybe "variable" is a the name of a structured variable that contains a component called "variableName." In Pascal, you can define a record type, Pascal's struct, if you will, by writing something like this: [code][B]type[/B] Car_Type = [B]record[/B] Make: String; Model: String; Year: integer [B] end[/B];[/code] Then, if, say, My_Car, is a variable of that type, "My_Car.Make" stands for the My_Car record's "Make" component, "My_Car.Model" stands for the My_Car variable's "Model" component, and "My_Car.Year" stands for that variable's "Year" component. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Learning objective-c please help!
Top