Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cocoa and Objective-C Cookbook
Cocoa and Objective-C Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. User Interface Components
Introduction
Using a NSTableView
Getting ready
How to do it...
How it works...
There's more...
See also
Using a NSOutlineView
Getting ready
How to do it...
How it works...
There's more...
See also
Using NSSplitView
Getting ready
How to do it...
How it works...
There's more...
See also
Using the WebView
Getting ready
How to do it...
How it works...
There's more...
See also
Displaying a NSAlert
Getting ready
How to do it...
How it works...
There's more...
See also
Formatting dates
Getting ready
How to do it...
How it works...
There's more…
See also
Formatting numbers
Getting ready
How to do it...
How it works...
There's more...
See also
Importing images
Getting ready
How to do it...
How it works...
There's more...
See also
Saving preferences with NSUserDefaults
Getting ready
How to do it...
How it works...
There's more...
See also
Retrieving preferences with NSUserDefaults
Getting ready
How to do it...
How it works...
There's more...
See also
Adding a password to KeyChain
Getting ready
How to do it...
How it works...
There's more...
See also
Retrieving a password from KeyChain
Getting ready
How to do it...
How it works...
There's more...
See also
Accessing the Address Book
Getting ready
How to do it...
How it works...
There's more...
See also
Adding an event to iCal
Getting ready
How to do it...
How it works...
There's more...
See also
2. Custom Views
Introduction
Drawing in your custom view
Getting ready
How to do it...
How it works...
There's more...
See also
Using your custom view in Interface Builder
Getting ready
How to do it...
How it works...
There's more...
See also
Handling mouse events in your view
Getting ready
How to do it...
How it works...
There's more...
See also
Handling keyboard events in your view
Getting ready
How to do it...
How it works...
There's more...
See also
Drawing strings with attributes
Getting ready
How to do it…
How it works…
There's more…
See also
3. Handling Events
Introduction
Interpreting the pinch gesture
Getting ready
How to do it...
How it works...
There's more...
See also
Interpreting the swipe gesture
Getting ready
How to do it...
How it works...
There's more...
See also
Interpreting the rotate gesture
Getting ready
How to do it...
How it works...
There's more...
See also
Handling special keys
Getting ready
How to do it...
How it works...
There's more...
See also
Working with NSResponder
Getting ready
How to do it...
How it works...
There's more...
See also
Application-wide notifications with NotificationCenter
Getting ready
How to do it...
How it works...
There's more...
See also
4. Using Animation
Introduction
Understanding the CALayer class
Getting ready
How to do it...
How it works...
There's more...
See also
Animation by changing properties
Getting ready
How to do it...
How it works...
There's more...
See also
Using animation to swap views
Getting ready
How to do it...
How it works...
There's more...
See also
Using the flip animation
Getting ready
How to do it...
How it works...
There's more...
See also
Using a CAAnimationGroup
Getting ready
How to do it...
How it works...
There's more...
See also
Using Keyframe animations
Getting ready
How to do it...
How it works...
There's more...
See also
Using CAMediaTiming in animations
Getting ready
How to do it...
How it works...
There's more...
See also
5. Objective-C 2.0
Introduction
Using blocks
Getting ready
How to do it…
How it works...
There's more...
See also
Switching compilers
Getting ready
How to do it...
How it works...
There's more...
See also
Create your own framework
Getting ready
How to do it...
How it works...
There's more...
See also
Using garbage collection
Getting ready
How to do it...
How it works...
There's more...
See also
Fast enumeration
Getting ready
How to do it...
How it works...
There's more...
See also
Declared properties
Getting ready
How to do it...
How it works...
There's more...
See also
6. Application Architecture
Introduction
The Singleton design pattern
Getting ready
How to do it…
How it works...
See also
The Factory design pattern
Getting ready
How to do it...
How it works...
See also
Using delegation in your own classes
Getting ready
How to do it...
How it works...
There's more...
See also
Using an NSTimer for periodic events
Getting ready
How to do it...
How it works...
See also
Working with Key-Value Coding
Getting ready
How to do it...
How it works...
There's more...
See also
Using operators with Key Value Paths
Getting ready
How to do it...
How it works...
There's more...
See also
Using NSAutoreleasePool
Getting ready
How to do it...
How it works...
There's more...
See also
7. Better Debugging
Introduction
Using special environment variables
Getting ready
How to do it...
How it works...
Environment Variables:
Preferences:
There's more...
See also
Using Instruments for performance
Getting ready
How to do it...
How it works
There's more...
See also
Handling exceptions
Getting ready
How to do it...
How it works...
There's more...
See also
Knowing when you are being debugged
Getting ready
How to do it...
How it works...
There's more...
See also
Using Debugger() and DebugStr()
Getting ready
How to do it...
How it works...
There's more...
See also
Using Build and Analyze in Xcode
Getting ready
How to do it...
How it works...
There's more...
See also
8. System Integration
Introduction
Adding a Badge to your Dock icon
Getting ready
How to do it...
How it works...
There's more...
See also
Adding a Menu to your Dock icon
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a disk image for your application
Getting ready
How to do it...
How it works…
There's more...
See also
Updating your application With Sparkle
Getting ready
How to do it...
How it works...
There's more...
See also
9. Working with Files
Introduction
Saving your class with NSKeyedArchiver
Getting ready
How to do it...
How it works...
There's more...
See also
Loading your class with NSKeyedUnarchiver
Getting ready
How to do it...
How it works...
There's more...
See also
Finding special folders
Getting ready
How to do it...
How it works...
There's more...
See also
Basic XML parsing
Getting ready
How to do it...
How it works...
There's more...
See also
Parsing JSON
Getting ready
How to do it...
How it works...
There's more...
See also
10. Working with the Web
Introduction
Using NSURLConnection with HTTP GET
Getting ready
How to do it...
How it works...
There's more...
See also
Using NSURLConnection with HTTP POST
Getting ready
How to do it...
How it works...
There's more...
See also
Adding a hex encoding category to NSData
Getting ready
How to do it...
How it works...
See also
Adding a hex decoding category to NSString
Getting ready
How to do it...
How it works...
See also
Adding a Base64 encoding category to NSData
Getting ready
How to do it...
How it works...
See also
Adding a Base64 decoding category to NSString
Getting ready
How to do it...
How it works...
See also
Adding a MD5 hash category to NSData
Getting ready
How to do it...
How it works...
There's more...
See also
Escaping a URL
Getting ready
How to do it...
How it works...
There's more...
See also
11. Working with Databases
Introduction
Inserting a row with MySQL
Getting ready
How to do it...
How it works...
There's more...
See also
Using prepared statements with MySQL
Getting ready
How to do it...
How it works...
See also
Selecting data using MySQL
Getting ready
How to do it...
How it works...
There's more...
See also
Inserting a row with SQLite
Getting ready
How to do it...
How it works...
There's more...
See also
Using prepared statements with SQLite
Getting ready
How to do it...
How it works...
There's more...
See also
Selecting rows using SQLite
Getting ready
How to do it...
How it works...
See also
12. Multimedia
Introduction
Playing movies with QuickTime
Getting ready
How to do it...
How it works...
There's more...
See also
Playing an audio file
Getting ready
How to do it...
How it works...
There's more...
See also
Using a Core Image filter
Getting ready
How to do it...
How it works...
There's more...
See also
Getting EXIF information from an image
Getting ready
How to do it...
How it works...
There's more...
See also
← Prev
Back
Next →
← Prev
Back
Next →