- Command-Line Arguments
- Objective-C - Error Handling
- Objective-C - Log Handling
- Objective-C - Type Casting
- Objective-C - Typedef
- Objective-C - Preprocessors
- Objective-C - Structures
- Objective-C - Strings
- Objective-C - Pointers
- Objective-C - Arrays
- Objective-C - Numbers
- Objective-C - Blocks
- Objective-C - Functions
- Objective-C - Decision Making
- Objective-C - Loops
- Objective-C - Operators
- Objective-C - Constants
- Objective-C - Variables
- Objective-C - Data Types
- Objective-C - Basic Syntax
- Objective-C - Program Structure
- Objective-C - Environment Setup
- Objective-C - Overview
- Objective-C - Home
Advanced Objective-C
- Obj-C - Memory Management
- Objective-C - Fast Enumeration
- Obj-C - Foundation Framework
- Objective-C - Composite Objects
- Objective-C - Dynamic Binding
- Objective-C - Protocols
- Objective-C - Extensions
- Objective-C - Posing
- Objective-C - Categories
- Objective-C - Data Encapsulation
- Objective-C - Polymorphism
- Objective-C - Inheritance
- Objective-C - Classes & Objects
Objective-C Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Obj-C Foundation Framework
If you refer Apple documentation, you can see the details of Foundation framework as given below.
The Foundation framework defines a base layer of Objective-C classes. In addition to providing a set of useful primitive object classes, it introduces several paradigms that define functionapty not covered by the Objective-C language. The Foundation framework is designed with these goals in mind −
Provide a small set of basic utipty classes.
Make software development easier by introducing consistent conventions for things such as de-allocation.
Support Unicode strings, object persistence, and object distribution.
Provide a level of OS independence to enhance portabipty.
The framework was developed by NeXTStep, which was acquired by Apple and these foundation classes became part of Mac OS X and iOS. As it was developed by NeXTStep, it has class prefix of "NS".
We have used Foundation Framework in all our sample programs. It is almost a must to use Foundation Framework.
Generally, we use something pke #import <Foundation/NSString.h> to import a Objective-C class, but in order avoid importing too many classes, it s all imported in #import <Foundation/Foundation.h>.
NSObject is the base class of all objects including the foundation kit classes. It provides the methods for memory management. It also provides basic interface to the runtime system and abipty to behave as Objective-C objects. It doesn t have any base class and is the root for all classes.
Foundation Classes based on functionapty
Sr.No. | Loop Type & Description |
---|---|
1 | NSArray, NSDictionary, and NSSet provide storage for Objective-C objects of any class. |
2 | NSCharacterSet represents various groupings of characters that are used by the NSString and NSScanner classes. The NSString classes represent text strings and provide methods for searching, combining, and comparing strings. An NSScanner object is used to scan numbers and words from an NSString object. |
3 | The NSDate, NSTimeZone, and NSCalendar classes store times and dates and represent calendrical information. They offer methods for calculating date and time differences. Together with NSLocale, they provide methods for displaying dates and times in many formats and for adjusting times and dates based on location in the world. |
4 | Exception handpng is used to handle unexpected situations and it s offered in Objective-C with NSException. |
5 | File handpng is done with the help of class NSFileManager. |
6 | A set of classes and protocols that provide access to common Internet protocols. |