{"id":4763,"date":"2013-10-13T05:08:33","date_gmt":"2013-10-12T18:08:33","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4763"},"modified":"2013-10-13T05:08:33","modified_gmt":"2013-10-12T18:08:33","slug":"xcode-objective-c-polymorphic-array-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/xcode-objective-c-polymorphic-array-primer-tutorial\/","title":{"rendered":"Xcode Objective-C Polymorphic Array Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/C\/Objective-C\/PolymorphicArray\/Polymorphic_Array.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Xcode Objective-C Polymorphic Array Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/C\/Objective-C\/PolymorphicArray\/Polymorphic_Array.jpg\" title=\"Xcode Objective-C Polymorphic Array Primer Tutorial\" \/><\/a><p class=\"wp-caption-text\">Xcode Objective-C Polymorphic Array Primer Tutorial<\/p><\/div>\n<p>Have you heard of Objective-C?   It is a great object-oriented programming language that builds that object orientation on top of a C programming base.   Sounds good (even better than good), and Objective-C is the language of iOS Mobile Apps, so it is definitely in the category of up and coming programming languages.   Let&#8217;s see what Wikipedia says about it below. <\/p>\n<blockquote><p>Objective-C is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language. It is the main programming language used by Apple for the OS X and iOS operating systems and their respective APIs, Cocoa and Cocoa Touch.<\/p>\n<p>Originally developed in the early 1980s, it was selected as the main language used by NeXT for its NeXTSTEP operating system, from which OS X and iOS are derived.[1] Generic Objective-C programs that do not use the Cocoa or Cocoa Touch libraries, or using parts that is ported or reimplemented for other systems can also be compiled for any system supported by GCC or Clang.<\/p><\/blockquote>\n<p>In this primer  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/C\/Objective-C\/PolymorphicArray\/Polymorphic_Array.jpg'>tutorial<\/a> we see how Xcode can supervise an Objective-C Desktop Application project to define a <a target=_blank title='Dynamic Array information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Polymorphism_(computer_science)'>Polymorphic Array<\/a>, and call the methods this array points to.<\/p>\n<p>Previous <a target=_blank title='C++ XCode OOP Polymorphic Array Tutorial' href='#prevpoly'>C++ XCode OOP Polymorphic Array Tutorial<\/a> is of interest for compare and contrast purposes and is shown further below.<\/p>\n<p>Regarding this Objective-C Polymorphic Array tutorial topic I really like <em>\u201cObjective-C\u201d<\/em> Visual Quickstart Guide by <em>Steven Holzner<\/em>.<\/p>\n<p>Also like this <a target=_blank title='Polymorphic Array tutorial by Well House Consultants Ltd.' href='http:\/\/www.wellho.net\/resources\/ex.php4?item=c233\/petite.cpp'>link<\/a> with regard to Polymorphic Arrays.<\/p>\n<p>Here are links to programming source code which shows some use of a Polymorphic Array, which you should rename to <a target=_blank title='main.m' href='http:\/\/www.rjmprogramming.com.au\/C\/Objective-C\/PolymorphicArray\/main.m_GETME'>main.m<\/a><\/p>\n<p>Link to Objective-C more information &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Objective-C' title='Link to Objective-C more information'>via Wikipedia, where quote above came from.<\/a>.\n<\/p>\n<hr \/>\n<p id='prevpoly'>Previous <a target=_blank title='C++ XCode OOP Polymorphic Array Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=1573'>C++ XCode OOP Polymorphic Array Tutorial<\/a> is of interest for compare and contrast purposes and is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/PolymorphicArray\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"C++ XCode OOP Polymorphic Array Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/PolymorphicArray\/PolymorphicArray.jpg\" title=\"C++ XCode OOP Polymorphic Array Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">C++ XCode OOP Polymorphic Array Tutorial<\/p><\/div>\n<p>Here is a tutorial that introduces you to some more aspects of OOP &#8230; oops, forgot to say what OOP stands for &#8230; Object Oriented Programming &#8230; specifically regarding <a target=_blank title='Polymorphism as discussed by Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Polymorphism_%28computer_science%29'>Polymorphic Arrays<\/a>.<\/p>\n<blockquote><p>Object-oriented programming (OOP) is a programming paradigm that represents concepts as &#8220;objects&#8221; that have data fields (attributes that describe the object) and associated procedures known as methods. Objects, which are usually instances of classes, are used to interact with one another to design applications and computer programs.<\/p><\/blockquote>\n<p>To me, the beauty of OOP is that it can relate to the nouns in our life.   Think of an object that you can touch, like a wristwatch &#8230; it has features like its type of design, its size, its weight (ie. its properties), and it has objects that go to make it up, like cogs and wheels (ie. its components), and it has its related classes of objects like clock, alarm clock, oven timer etcetera (ie. its characteristics), and its more fundamental essence, the class of watch (ie. its inheritance).<\/p>\n<p>In this tutorial we touch on Polymorphic Arrays and the use of an Abstract Base Class and Two Subclasses which contribute to the types within this array.   Has some similarities to <a target=_blank title='MultiCulturalism discussion on Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Multiculturalism'>MultiCulturalism<\/a> perhaps?<\/p>\n<p>Let&#8217;s see some  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/PolymorphicArray\/'>C++ using XCode<\/a> for this &#8230;<\/p>\n<p>Link to Object Oriented Programming information &#8230; <a target=_blank title='OOP' href='http:\/\/en.wikipedia.org\/wiki\/Object-oriented_programming'>from Wikipedia from which quote above comes<\/a>.<br \/>\nLink to Object Oriented Programming inventor information &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Kristen_Nygaard' title='Object Oriented Programming inventor ... thanks to Wikipedia, again.'>Kristen Nygaard<\/a>.<br \/>\nAlso like this <a target=_blank title='Polymorphic Array tutorial by Well House Consultants Ltd.' href='http:\/\/www.wellho.net\/resources\/ex.php4?item=c233\/petite.cpp'>link<\/a> with regard to Polymorphic Arrays.<br \/>\nLink to some downloadable programming code &#8230; rename to <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/PolymorphicArray\/main.cpp_GETME' title='Download me'>main.cpp<\/a> for use.\n<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d1573' onclick='var dv=document.getElementById(\"d1573\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=C%2B%2B\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d1573' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr \/>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d4763' onclick='var dv=document.getElementById(\"d4763\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=Objective-C#content\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d4763' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Have you heard of Objective-C? It is a great object-oriented programming language that builds that object orientation on top of a C programming base. Sounds good (even better than good), and Objective-C is the language of iOS Mobile Apps, so &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/xcode-objective-c-polymorphic-array-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,28,37,40],"tags":[176,852,875,963,997,1319,1473],"class_list":["post-4763","post","type-post","status-publish","format-standard","hentry","category-elearning","category-oop","category-tutorials","category-xcode","tag-c","tag-objective-c","tag-oop","tag-polymorphic-array","tag-programming","tag-tutorial","tag-xcode"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4763"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=4763"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4763\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=4763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=4763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=4763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}