Professional Documents
Culture Documents
Objective-C and iOS Programming A Simplified Approach To Developing Apps for the Apple iPhone and iPad 1st Edition Arshia Khan Solutions Manual instant download all chapter
Objective-C and iOS Programming A Simplified Approach To Developing Apps for the Apple iPhone and iPad 1st Edition Arshia Khan Solutions Manual instant download all chapter
Objective-C and iOS Programming A Simplified Approach To Developing Apps for the Apple iPhone and iPad 1st Edition Arshia Khan Solutions Manual instant download all chapter
https://testbankdeal.com/product/objective-c-and-ios-programming-
a-simplified-approach-to-developing-apps-for-the-apple-iphone-
and-ipad-1st-edition-arshia-khan-test-bank/
https://testbankdeal.com/product/programming-with-mobile-
applications-android-ios-and-windows-phone-7-1st-edition-duffy-
solutions-manual/
https://testbankdeal.com/product/system-programming-with-c-and-
unix-1st-edition-hoover-solutions-manual/
https://testbankdeal.com/product/introduction-to-c-programming-
and-data-structures-4th-edition-liang-solutions-manual/
Building Cross Platform Mobile and Web Apps for
Engineers and Scientists An Active Learning Approach
1st Edition Lingras Solutions Manual
https://testbankdeal.com/product/building-cross-platform-mobile-
and-web-apps-for-engineers-and-scientists-an-active-learning-
approach-1st-edition-lingras-solutions-manual/
https://testbankdeal.com/product/introduction-to-matlab-
programming-and-numerical-methods-for-engineers-1st-edition-
siauw-solutions-manual/
https://testbankdeal.com/product/introduction-to-programming-
with-c-4th-edition-diane-zak-solutions-manual/
https://testbankdeal.com/product/smarter-startup-the-a-better-
approach-to-online-business-for-entrepreneurs-1st-edition-cabage-
solutions-manual/
https://testbankdeal.com/product/developing-the-public-relations-
campaign-a-team-based-approach-2nd-edition-bobbitt-solutions-
manual/
Objective-C and iOS Programming:
A Simplified Approach to Developing Apps for the Apple iPhone and iPad
Chapter 6
Foundation Framework
A Guide to this Instructor’s Manual:
We have designed this Instructor’s Manual to supplement and enhance your teaching
experience through classroom activities and a cohesive chapter summary.
Overview
Chapter 6 introduces foundation framework, autoreleasepool, NSString and NSArray.
Chapter Objectives
• Learn the ins and outs of Foundation framework
• Take a look at the Message syntax
• Learn the purpose of @autoReleasepool
• Create and edit NSString objects and methods
• Create and manipulate NSArray
Lecture Notes
• If you already know C++ or C, learning the concepts of Objective-C becomes
easier.
• Any C or C++ program can be part of the Objective-C code and will compile
without errors.
• The unique concept in Objective-C is the concept of sending a message to a
method and not calling it.
• The message sent to invoke a method comprises of the parameters that are passed.
• Methods reside inside a class.
• A set of classes together comprises a framework.
• There are several types of frameworks identified by their functionality.
© 2015 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as
permitted in a license distributed with a certain product or service or otherwise on a password-protected website for
classroom use.
Objective-C and iOS Programming:
A Simplified Approach to Developing Apps for the Apple iPhone and iPad
• The foundation framework is the most commonly used framework that provides
functionality of data types such as NSArrays, NSString, NSData, NSDate, and
more.
• The autoreleasepool manages data for the variables. The advent of the
autoreleasepool has made the life of the iOS programmers much easier. They now
do not have to block and release memory.
• In the past, the memory management caused many issues related to the processing
speed as the programmers would forget to either block memory before the use of
a variable or release memory when the variable was no longer in use.
• The NSString, NSArray, and NSDictionary have the mutable and immutable
versions. The default is the immutable version, where changes to the order of the
variables cannot be made. The mutable versions allow for the edits.
• The NSString, NSArray, and the NSDictionary are useful data types that the
students should know how to use. They can also be passed to a method as a
parameter.
• There are several predefined methods associated with NSString, NSArray, and the
NSDictionary that are available for use.
Short Quiz:
Q1: Objective-C is a superset of what language?
Answer: The Ansi C language.
Q4: What does it call the application framework along with the foundation framework?
Answer: Cocoa.
© 2015 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as
permitted in a license distributed with a certain product or service or otherwise on a password-protected website for
classroom use.
Objective-C and iOS Programming:
A Simplified Approach to Developing Apps for the Apple iPhone and iPad
© 2015 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as
permitted in a license distributed with a certain product or service or otherwise on a password-protected website for
classroom use.
Another random document with
no related content on Scribd:
The Project Gutenberg eBook of Saknarth
This ebook is for the use of anyone anywhere in the United States
and most other parts of the world at no cost and with almost no
restrictions whatsoever. You may copy it, give it away or re-use it
under the terms of the Project Gutenberg License included with this
ebook or online at www.gutenberg.org. If you are not located in the
United States, you will have to check the laws of the country where
you are located before using this eBook.
Title: Saknarth
Language: English
The Master Astrologer leaned on the railing and stared at it. The
huge mirror, kept in condition by the attendants, gleamed brilliantly.
The great instrument at the end of the hall near the window, the
Eastern sky visible. The sun rose in sight of that window, and the
Morning Star. From where the telescope stood, it should be possible
to train it on the planet.
The Master Astrologer became excited; he glanced around hurriedly
for fear someone might have witnessed. Then carefully he took in all
details of the lay of the room, turned and walked out.
It was dark. A chill wind from the deserts swept through the deserted
streets of the Martian capital. A period of deepest silence when even
the eternal thumping of the canal pumps died down to a dull distant
hum. In the dim stretches of the hour before dawn the city was at its
quietest. On the street corners a few sleepy guards leaned against
walls and closed their single great eyes in rest for a moment.
Down a side street in the darkest shadows slipped a figure. Dark
cloaked, treading upon cushioned toes, it crept from building to
building, keeping as much as possible in the recesses of arches of
the little carved balconies Martian buildings are wont to have. Finally
the figure came to a halt in a doorway. It stood for a moment looking
around to make sure of the place and then producing a long thin
instrument, picked the lock and rolled aside the door.
Saknarth stepped softly inside the dark hallway, rolled the door shut.
He listened a moment, then assured by silence tip-toed forward up
the incline that he knew lay to one side of the hall. Up he climbed.
Reaching a floor, he turned quickly and groped for the next incline,
reached it and ascended again. Soon he came to where there were
no more floors, and pushing aside a trap door, stepped out on the
roof.
It was not so dark up here. The dim lights of the two tiny moons
added to the lights of the myriad stars to cast a misty white glow
upon objects.
The astrologer tip-toed silently across the roof onto an adjoining one.
On he progressed to come finally to the great wall of a building
looming up above. Set in this wall was a large window about fifteen
feet above his head.
Saknarth groped under his cloak, drew out a long thin rope. To the
end of this he fastened a small, strong double hook making an
effective grappling iron.
He stepped back, whirled it around his head and tossed it upwards.
It struck the wall just below the sill, bounded back. He waited and
listened; no one had heard. Again he tossed the rope; and this time
the hook caught in the carved decorations of the window sill.
Saknarth pulled; the rope held. He whispered a short prayer and
grasping high on the rope raised his feet off the ground. Immediately
he swung inward to touch the wall with his feet. Then, slowly and
laboriously, climbed up the rope.
Reaching the sill, Saknarth threw a leg over and lay quiet for a
moment. Still safe. He drew out his lock-picking instrument and
easily opened the window enough to permit him to creep through
and drop silently on the other side.
The long hall was dark and quiet. No one had heard him. He looked
up. There next to him loomed the great telescope.
Updated editions will replace the previous one—the old editions will
be renamed.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth in
paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.