My Blog List

Showing posts with label framework. Show all posts
Showing posts with label framework. Show all posts

Monday, June 6, 2011

Exploring Apple Documentation: Navigation






I need to work on really using the apple IOS documentation more. Though I've been looking at class reference pages, I haven't really tried to use the documentation to learn concepts.

This seems like a good place to start


http://developer.apple.com/library/ios/navigation/

It includes

*iOS Overview
*Tools for iOS Development
* A Short Practical Guide to Blocks
* Learning Objective-C: A Primer
* Creating an iPhone Application

Friday, June 3, 2011

Reading Notes: Is it Magic? Is it happening in the framework code? Initialization of Window

 Exactly how 'window' is being initialized is bugging me. I'm not seeing an obvious place where the object is instantiated. 

Maybe because it's happening in the framework?

Or maybe because all the business of @synthesize and @property doing the accessing for me?

The author says that DeepThoughtsAppDelegate.m is initializing window. Is initialization happening by using 
·      @implentation directive?
o    Or
·      with the @synthesize window ?

·      Searched on ‘alloc’ and ‘init’ in the code. I don’t see init

·      Come back to this

·       getting used. Is there some magic that @synthesize does?

The @synthesize directive automatically generates the setters and getters for us, so all we have to implement for this class is the dealloc method. ..Accessors will only be generated if they don't already exist, so feel free to specify @synthesize for a property, then implement your custom getter or setter if you want. The compiler will fill in whichever method is missing.
…. Snip from the wikipedia online tutorial
a mutator method is a method used to control changes to a variable. The mutator method, sometimes called a "setter", is most often used in object-oriented programming, in keeping with the principle of encapsulation. According to this principle, member variables of a class are made private to hide and protect them from other code, and can only be modified by a public member function (the mutator method), which takes the desired new value as a parameter, optionally validates it, and modifies the private member variable.
Often a "setter" is accompanied by a "getter" (also known as an accessor), which returns the value of the private member variable…..


Monday, May 30, 2011

Study Notes: Frameworks Part 2


* Frameworks are SIMILAR to software libraries but ALSO implement a flow of control

* Frameworks order things like which messages re sent to objects, launch order, and when a user can touch a buttton

* ORDER IS PART OF THE FRAMEWORK
* The programmer says how to act (really it's the framework that says how to act - I think)

* The programmer adds specific functionality to the framework. She adds

     * content
     * controls
     * views

* DESIGN PATTERNS  behind the frameworks are what I need to understand.

* A really crucial design pattern to understand is the one for UIKIT

Study Notes: Frameworks Part 1



 
P 138/ Chapter 7

* IOS operating system for iPad (iPhone)

* Framework       Common code that provides generic functionality

·     IOS frameworks provide
o    Event handling support
o    Drawing support
o    Windows
o    Views
o    Controls

* Are the IOS frameworks the same as Cocoa?



Cocoa (API)
Snip from
From Wikipedia, the free encyclopedia

Cocoa
Website
Cocoa is one of Apple Inc.'s native object-oriented application programming interfaces (APIs) for the Mac OS X operating system and—along with the Cocoa Touch extension for gesture recognition and animation—for applications of iOS on Apple's iPhone, iPad, and iPod touch product lines.
Cocoa applications are typically developed using the development tools provided by Apple, specifically Xcode (formerly Project Builder) and Interface Builder, using the Objective-C language. However, the Cocoa programming environment can be accessed using other tools, such as Clozure CL, LispWorks, Object Pascal, Python, Perl, Ruby, and AppleScript with the aid of…..

What is Cocoa Touch

Snip from
http://developer.apple.com/technologies/ios/cocoa-touch.html

The Cocoa Touch frameworks that drive iOS apps share many proven patterns found on the Mac, but were built with a special focus on touch-based interfaces and optimization. UIKit provides the basic tools you need to implement graphical, event-driven applications in iOS. UIKit builds on the same Foundation framework infrastructure found on the Mac OS X, including file handling, networking, string building, and more.