Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Title
Copyright
Dedication
Contents at a Glance
Contents
About the Authors
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: Starting to Build a Graphing Calculator
Using the Xcode Development Tools
Obtaining Xcode
Installing Xcode
Understanding Xcode
The Editor Area and the Jump Bar
The Navigator Area and the Navigator Selector Bar
Creating a Project
Understanding the Major Components
The Project and Targets
The Application Architecture
The Source Code and Resources
The About Dialog
Summary
Chapter 2: Laying Out the User Interface
Creating the Split View
Creating the Horizontal NSSplitView
Creating the Vertical NSSplitView
Creating the Equation Entry Panel
Using NSViewController
Laying Out the Custom Equation Entry Component
A Primer on Automatic Reference Counting
Using IBOutlet
Hooking Up the New Component to the Application
Resizing the Views Automatically
Further Customizing the Components
Creating the Graph Panel
Adding the Horizontal Slider
Adding the Table View
Adding the Graph Panel to the Application
Creating the Table of Recently Used Equations
Creating the Data Source
Displaying the Data
Adding a Toolbar
Summary
Chapter 3: Handling User Input
Resizing the Views
Resizing the Window
Constraining the Split View Sizes
Constraining the Window Size
Collapsing a Subview
Handling Button Presses
The Model-View-Controller Pattern
Using IBAction
Creating the Model: Equation
Communication Among Controllers
Validating Fields
Validating After Submitting
A Better Way: Real-Time Validation
Graphing the Data
Calculating and Caching the Data
Talking to the Table: Outlets and Delegates
Changing the Interval in the Domain
Using Key-Value Coding
Binding the Value to the Slider
Summary
Chapter 4: Pimp My UI
Creating a Graph View
Creating a Custom View
Linking the New Custom View to the Controller
Plotting the Graph
Toggling Between Text and Graph
Adding the Tab View
Adding the Views to the Tabs
Switching the Controller to the Tab View
Creating a Smarter Equation Editor
Adding Attributes to the Equation Entry Field
Creating the Tokens
Parsing the Equation
Implementing the Method to Tokenize the Equation
Detecting Multiple Decimal Points
Testing the Tokenizer
Showing the Equation
Updating the Validator
Updating the Evaluator
Summary
Chapter 5: User Preferences and the File System
Managing User Preferences
Understanding NSUserDefaults
Setting the Font for the Equation Entry Field
Setting the Line Color
Creating a Custom Preferences Panel
Using the Local File System
Browsing the File System
Writing to the File System
Reading from the File System
Exporting Graphs as Images
Summary
Chapter 6: Using Core Data
Stepping Up to Core Data
Adding Core Data to the Graphique Application
Adding the Core Data Framework
Creating a Data Model
Designing the Data Model
Initialize the Managed Object Context
Storing Recently Used Equations
Querying the Persistent Store to Get the Group Entity
Creating the Equation Managed Object and Adding It to the Persistent Store
Committing
Putting Everything Together into the Final Method
Reloading Recently Used Equations
Tightening the Control over the Outline View
Using NSOutlineViewDelegate
Handling Equations Selection
Preventing Double-Clicks from Editing
Summary
Chapter 7: Integrating Graphique into the Mac OS X Desktop
Dealing with Graphique XML Files
Producing a Graphique File
Loading a Graphique File into the Application
Registering File Types with Lion
Defining the New UTI for the .graphique Extension
Registering Graphique as an Editor for Graphique Files
Handling Graphique Equation Files
Using Quick Look to Generate Previews and Thumbnails
Creating the Quick Look Plug-in
Implementing the Preview
Testing the Plug-in
Implementing the Thumbnail
Distributing the Quick Look Plug-in with the Graphique Application
Adding an Item to the Menu Bar
Understanding NSStatusBar and NSStatusItem
Adding a Status Item to Graphique
Building the Status Item Menu
Integrating the Status Item
Heeding Apple’s Advice Regarding Menu Bar Icons
Summary
Chapter 8: Creating Help
A Word on Help
Understanding Help Books
Creating Your Help Book
Creating the Directory Structure
Creating the Main Help File
Creating the Rest of Your Help Files
Creating the Help Index
Setting Up Your Plist File
Importing Your Help Book into Your Xcode Project
Updating Your Application’s Plist File
Viewing the Help
Bookmarking a Page
Performing a Search
Summary
Chapter 9: Printing
Printing the Graph View
Printing the Graph
Drawing for the Printer
Spanning to Multiple Pages
Calculating the Number of Pages
Determining the Page Size
Drawing the Page
Summary
Chapter 10: Submitting to the Mac App Store
Reviewing the Guidelines
Finishing the App
Terminating Graphique When Its Window Closes
Adding the Icon
Reviewing the Property List File
Cleaning Up the Menu
Setting the Initial Window Size and Location
Signing the Code
Sandboxing the App
Building for Release
Setting Up Your Web Site
Using the Artwork
Creating the Web Site
Submitting the App
Setting Up Your iTunes Connect Account
Uploading Your Application
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →