About mattjdrake

Author Archive | mattjdrake

Introduction To Computer Science With Objective-C

Computer Science is the study of abstraction – finding the best model for a problem and implementation – figuring out how to solve the solution mechanically. That is what my new series is all about: getting back to the basics and understanding how Computer Science will make us better iOS and Objective-C programmers. Introducing the [...]

Read full story Comments { 0 }

Format Dates In Objective-C With NSDate + NSDateFormatter

Anyone who uses NSDate knows that the output format can be pretty unpleasant looking. This output is not something that you would generally present to your users. So what is an Objective-C programmer to do with dates? The answer is to use NSDateFormatter to create date formats and get data objects formatted as strings that [...]

Read full story Comments { 0 }

February Going Ons (Mobile App Mastery Newsletter)

So I’ve been trying to get myself to publish a monthly newsletter for Mobile App Mastery and this blog for some time. But, as you will find out in a second I’ve been extremely busy with a sweet semi-secret project. But, at any rate here is my attempt to update you on the tons of [...]

Read full story Comments { 0 }

How Philosophy Can Help You Learn Programming

As an undergraduate, I took a liberal arts course that really changed my thinking about programming. If you can believe it, this course was a philosophy course! This course is what brought everything into focus and made me into the programmer that I am today. Here is to learning to solve problems logically for easy [...]

Read full story Comments { 0 }

Comparing Strings With NSString In Objective-C

Many people, when they are first starting with Objective-C and iOS want to be able to compare strings in if-then statements and things like that. But note that that doesn’t work because strings are objects and if you want to compare strings you will need to use the NSString object methods that Apple has made [...]

Read full story Comments { 0 }

Chapter 12: Key-Value Coding (KVC)

Chapter 12: Key-Value Coding (KVC) of my free eBook, Beginning Objective-C Programming. This involves using a set of NSObject methods that can set or get property values based on their string representation. So, if a class has a name property you can get or set that value by using the dot notation in code or [...]

Read full story Comments { 0 }

Add And Subtract Dates In Objective-C

Here is the problem: your app works with dates and you would like to be able to find out what day came a week before, or is coming up in two years. There are a few ways to do this but the easiest by far is to use your user’s calendar along with the NSDateComponents [...]

Read full story Comments { 0 }

Building Web Apps With Objective-C

Did you know that you can make web apps with Objective-C? Here is the “hows” on Building Web Apps With Objective-C, or should I say, Objective-J! Objective-What? Objective-J is a programming language that is based on Objective-C that is designed to work with web apps. The J comes from the idea that Objective-J is a [...]

Read full story Comments { 0 }

Compiling Mac Apps With ARC From Terminal

The other day, I was looking around for a simple way to just compile a text file for a simple Mac app. This isn’t something that you would do everyday but there are times when it’s nice to have the simplest bit of code out there without all the fuss involved with the XCode templates [...]

Read full story Comments { 0 }

Chapters 10, 11 and 12 Added To Beginning Objective-C Programming

Latest Chapters of my Free eBook Recently Added. Chapters 10, 11 and 12 Added to Beginning Objective C Programming. What’s In This Objective-C Programming Book? The first section of this eBook has all the essential elements of programming that you need to learn before really moving on as an iOS developer. This is what you [...]

Read full story Comments { 0 }