Author Archives: admin

Programming Swift! Mac Apps 1 Swift 3 Edition

Programming Swift! Mac Apps 1 – Swift 3 Edition is all about getting started building Mac applications with Xcode and Swift 3.

The book covers visual programming with storyboards and interface builder. You’ll be working with latest version of Xcode and Swift, building modern Mac applications.

The book has 17 hands on chapters and several projects that you will build from the ground up. You’ll start building small, throw-away demo apps that focus on a new topic then you’ll build a complete app that combines these topics and shows you how to put them together in a real application.

You will learn about:

App architecture and building blocks.

MVC.

Outlets, Actions.

Cocoa application storyboards, scenes and segues.

The assistant editor and manual code connections.

Application life cycles, app delegate events and view events.

The Xcode object library, sender objects, dual personality connections.

Auto Layout and the stack view system.

Basic debugging.

Programming for the responder chain and first responder object

Menus and toolbars.

The app About Box

Applications with multiple views and windows.

Tabbed views and relationship segues.

More segues for panels, alerts, sheets and the representedObject.

File Open/Save panels, file manager objects and image controls.

Xcode Asset Catalog and a larger project app: Asset Maker (you’ll build an app that can create icons for your projects).

The user defaults class – saving application settings and adding a preferences pane.

Introduction to data sources and delegates.

Use data-driven combo-box.

Data models, build a Swift singleton class to act as the Model in MVC.

Database apps

Table Views – both cell based and view based table views that persist data to XML

The all new, modern NSCollectionView with delegates, data sources and flow layout.

Source Code download: macapps1swift3v1.zip 07-dec-2016

Note: the source code download for this book contains all major projects listed in the book and built using Xcode 8.1 and Swift 3.

Now available on Amazon Kindle and iBooks

 

 

Free Xcode Primer / Objective-C books

That’s right – they’re free!

All of the Objective-C ebooks in the Xcode Primer series are now available for free!

They have been retired from the iBook store and Amazon 🙁

These books will no longer be updated or supported, but if you have a use for them, they’re right here.

Just browse the book pages and find a download link at the bottom of each page.

All books are in the ePub format and can be opened directly in iBooks for Mac and iPad and even an iPhone.

R.I.P Objective-C 🙂

-Nick

Programming Swift! Swift 3

“Programming Swift! Swift 3” is the latest book in the Programming Swift! series from AppSmith Books.

Start learning to program and start right now with Swift 3 and Xcode 8.

You’ll learn about Playgrounds and Xcode Projects, functional programming, object oriented programming and protocol oriented programming. You’ll learn the language that will power iOS, macOS, watchOS and tvOS in the years to come.

Even if you haven’t decided to build the next killer app for the iPhone and you just want to learn to program, Swift 3 is a great language to start with. Ultra modern, capable, powerful and fun – you’ll love learning Swift 3.

This book covers all the major features of the Swift 3 language and the sweeping changes made to the way Swift imports classes, methods and data structures from the Apple frameworks.

You’ll start off in Playgrounds learning about variables, constants, types and objects. Then you’ll move on to IF statements, flow control, Switch statements, loops, arrays, dictionaries, protocols, delegates, optionals, object oriented programming, classes, structs, enums, native types and framework types, error handling, protocol extensions, optionals, guard statements and more.

This book is all about learning the latest version of the Swift language at your own pace. There are hundreds of code samples, exercises and challenges.

Now available on Amazon and iBooks.

amazon ibookstore

Get the source code here.

 

Programming Swift! Mac Apps 1

Programming Swift! Mac Apps 1 is all about getting started building Mac applications with Xcode.

The book covers visual programming with storyboards and interface builder. You’ll be working with latest version of Xcode and Swift, building modern Mac applications.

The book has 17 hands on chapters and several projects that you will build from the ground up. You’ll start building small, throw-away demo apps that focus on a new topic then you’ll build a complete app that combines these topics and shows you how to put them together in a real application.

You will learn about:

App architecture and building blocks.
MVC.
Outlets, Actions.
Cocoa application storyboards, scenes and segues.
The assistant editor and manual code connections.
Application life cycles, app delegate events and view events.
The Xcode object library, sender objects, dual personality connections.
None-Visual objects: Timer and sound objects.
Auto Layout and the stack view system.
Basic debugging.
Programming for the responder chain and first responder object
Menus and toolbars.
The app About Box
Applications with multiple views and windows.
Tabbed views and relationship segues.
More segues for panels, alerts, sheets and the representedObject.
File Open/Save panels, file manager objects and image controls.
Xcode Asset Catalog and a larger project app: Asset Maker (you’ll build an app that can create icons for your projects).
The user defaults class – saving application settings and adding a preferences pane.
Introduction to data sources and delegates.
Use data-driven combo-box.
Data models, build a Swift singleton class to act as the Model in MVC.
Database apps
Table Views – both cell based and view based table views that persist data to XML
The all new, modern NSCollectionView with delegates, data sources and flow layout.

Source Code Download

Here are the selected source code projects for this book. The chapter 5 BMI project includes the changes made later in the Auto Layout chapter and there are two versions of the Asset Maker project. The AssetMaker05noprefs file is the first version of Asset Maker before the preferences panel was added.

Enjoy!

Source Code

Get the Book

Coming to iBooks soon!

Available on all Amazon Sites:

amazon

Available on Amazon.co.uk

ibookstore

 

 

 

Programming Swift! Swift 2

Programming Swift! Swift 2
AppSmith Books
Page Count: 420
Author: Nick Smith

“Programming Swift! Swift 2” is the latest book in the Programming Swift! series from AppSmith Books.

Start learning to program and start right now with Swift 2 and Xcode 7.

You’ll learn about Playgrounds and Xcode Projects, functional programming, object oriented programming and protocol oriented programming. You’ll learn the language that will power iOS and OS X in the years to come.

Even if you haven’t decided to build the next killer app for the iPhone and you just want to learn to program, Swift 2 is a great language to start with. Ultra modern, capable, powerful and fun – you’ll love learning Swift 2.

This book covers all the major features of the Swift 2 language. You’ll start off in Playgrounds learning about variables, constants, types and objects. Then you’ll move on to IF statements, flow control, Switch statements, loops, arrays, dictionaries, protocols, delegates, optionals, object oriented programming, classes, structs, enums, native types and framework types, error handling, protocol extensions, optionals, guard statements and more.

This book is all about learning the Swift language at your own pace. There are hundreds of code samples, exercises and challenges.


Source Code Download – click on the link to download a single .zip file.


 

 

amazon ibookstore

 

Programming Swift! Playgrounds

Free eBook! Updated for Xcode 7 Playgrounds.

Programming Swift! Playgrounds” is a free supplementary ebook in the “Programming Swift!” series from AppSmith books.
This book will give you a visual, guided tour of Xcode Playgrounds with hands-on coding examples that addresses the 4 main areas of Xcode playgrounds all bound together in one handy ebook.
Topics include:
The basics, getting to know playgrounds and the various panels like: the code editor, the results sidebar, the assistant editor, console output, quick view and inline results panels and the time line.
You’ll go behind the scenes and work with the built in Sources and Resources folders for adding support code files and resources such as images.
You’ll work with the XCPlayground framework and tap into the playground specific functions like, XCPShowView and XCPCatureValue.
There’s also a chapter on playgrounds with rich comments using Markdown.
This book is designed to accompany the other books in the Programming Swift! series, so you’ll have an up-to-date, handy, hands-on reference for the latest version of Xcode Playgrounds.

This is a free ebook and you can download the ePub version right here!


 – simply click on the link to download, then double-click the file to open in iBooks.

This book is already available on Amazon, though Amazon will charge $0.99 for distribution on the Kindle platform.

amazon

Programming Swift! Beginning iOS Development

Programming Swift!
Beginning iOS Development

Programming Swift! is a new series of programming books for Apple’s Xcode system and their new language Swift.

Beginning iOS Development” is the first title in the series. The book is available on Amazon and the Apple iBookstore.

cover-small

With this book you’ll learn about using Swift in everyday programming tasks when learning to build iOS applications for the iPhone, iPad and the iPod Touch with Xcode.

The book is about 500 printed pages covering a broad range of topics over 19 chapters and is fully illustrated throughout with color screen shots and diagrams.

Both Amazon and iBooks will let you sample the first couple of chapters.

If you get stuck with a chapter project, the source code for the major chapter projects is available below, and AppSmith Books also have forum where you can ask the author questions or discuss topics with other readers. Forum.

Source Code Download:

The download for this title is a 2.2mb .zip file containing the Xcode projects for several of the chapter projects including the Swift Mac OS X project “Asset Maker” used for creating application icons.

As Apple fine-tune the Cocoa and Cocoa Touch frameworks to work better with the Swift programming language, updates and changes may break the source code available here. The date beside the download link will be updated if the source code download changes.

Download Version 16-Dec-2014 (previous 16-Dec-2014).

Available on Amazon and iBooks now.
amazon ibookstore

 

Xcode Primer – Starting Core Data

Xcode Primer – Starting Core Data – Now Free!

This is the fifth book in the Xcode Primer series and is designed to get you started quickly and confidently with Core Data, teaching you the basics in OSX and iOS with mix of theory and plenty of hands on coding and App building. Starting Core Data builds upon the previous two Xcode Primer books: Visual Programming for iOS and Visual Programming for OS X. The book was written using OS X 10.9.x, iOS 7.x and Xcode 5.x.

In this book, I’ve taken a database oriented approach to Core Data and the exercises are all designed to build content/information based apps. You can use the book as a study guide and also as a reference.

The goal of this book is to take the learning curve of Core Data and flatten it out a bit.

The book will cover Core Data basics like adding, deleting, updating data, as well as sorting, filtering and relational data. When you’re done with this book, you’ll have a good understanding and plenty of practical coding experience with all of the following subjects:

Designing a data model with: entities, attributes, relationships, data types, managed objects, subclassed managed objects, persistent store types, fetch requests, predicates, table views, stored fetch request templates, fetched results controllers, property level validation and binary data attributes for storing data like images.

The book is illustrated throughout and the code samples are formatted for ebook reading.

Source Code:

Some of the source code packages are the result of more than one chapter. For example, chapter 14 added Core Data validation techniques to the chapter 13 project. There is no separate download for chapter 14. The chapter 13 source code download includes the code covered in chapter 14.

Chapter 2 source code

Chapter 3 source code

Chapter 4 source code

Chapter 5 source code

Chapter 5 v2 (Year attribute as String)

Chapter 7 source code

Chapter 9 source code

Chapter 11 source code

Chapter 12 source code

Chapter 13 source code

Get your Free ePub here 10mb

Xcode Primer – Visual Programming for OS X

Xcode Primer – Visual Programming for OS X – Now Free!

The fourth book in the Xcode Primer series.
Learn to build Mac apps in Xcode 5 on OS X Mavericks or Mountain Lion.
Covers app building basics, debugging, protocols, delegates, table views, collection views, KVO, popovers, windows and much more.
Build on your C and Objective-C knowledge from the previous Xcode Primer books and learn the art of visual programming in Xcode 5.
Free source code available.

Note: the source code links will take you to Google Drive. You do not need a login to download. To download the Zip file, simply follow the instructions in chapter 24.1 of the book. 

Source Code:

Chapter 8.1 Calculator Project

Chapter 9 Project

Chapter 10-3 Project

Chapters 15-16 AssetMaker3 

Chapter 20 Project

Chapter 21 Project

Chapter 22 Project

Chapter 23 Project

Get your Free ePub here 14mb