Quantcast
Channel: Cocoa Is My Girlfriend
Browsing all 34 articles
Browse latest View live

Handling incoming JSON redux

A few months ago I wrote here about a generic approach to safely take incoming JSON and save values to Core Data object. The goals of that code were twofold: Provide a safe, generic alternative to...

View Article



A phased approach to sandboxing

With the March 1st start date approaching when sandboxing becomes a requirement for submissions to the Mac App Store, I’ve been considering my options. I have 2 products, one of which was easy to...

View Article

Extending NSData and (not) Overriding dealloc

A couple of weeks ago Matt Long was having a problem with an app running out of memory. He had a ginormous data file he needed to load up and process, and that memory hit was more than the app could...

View Article

Unit Testing with Core Data

Whether you subscribe to Test Driven Development (TDD) or another testing practice, when it comes automated unit testing with Core Data, things can be a little tricky. But if you keep it simple, and...

View Article

Image may be NSFW.
Clik here to view.

Importing Data Made Easy

Importing data is a problem that feels like it should have a library of work ready for you to use. Especially when it comes to importing data into Core Data where you have a description of your data to...

View Article


Image may be NSFW.
Clik here to view.

A Better Fullscreen Asset Viewer with QuickLook

Since last year I’ve spent a lot of time working on iPad apps for medical device companies. These companies want to be able to display their sales materials/digital assets to potential buyers on the...

View Article

Image may be NSFW.
Clik here to view.

Xcode LLDB Tutorial

What inspired the Xcode LLDB Tutorial? Well, I tweeted this the other day: A few people then responded over twitter asking that I would elaborate by writing a tutorial here on CIMGF. So here it is....

View Article

Image may be NSFW.
Clik here to view.

Leveraging Basic SEO

Being that I’m a blogger as well as a software developer, I’m going to deviate a little from the normal Cocoa specific programming fare and focus a bit on leveraging basic SEO on your blog. These are...

View Article


Image may be NSFW.
Clik here to view.

NSFetchedResultsController -sectionNameKeyPath discussion

Core Data and NSFetchedResultsController do clever things under-the-hood to improve performance, such as loading data in batches as it’s needed. But there’s a gotcha with grouping data with...

View Article


Down with Magic Strings!

Developing iOS apps in Xcode is pretty great. With Objective-C and llvm we get type checking and autocompletion of all our classes and method names which is a nice improvement over my favorite dynamic...

View Article

Image may be NSFW.
Clik here to view.

Querying Objective-C Data Collections

In my Xcode LLDB Tutorial, I mention using the debugger to interrogate data collections. Well, I wanted to elaborate on that idea a little because there are some techniques you can use for querying...

View Article

Image may be NSFW.
Clik here to view.

Anonymous Image File Upload in iOS With Imgur

It seems like a pretty useful feature, anonymous image file upload in iOS with imgur. If you need to upload images and don’t want to fool with some authentication mess like OAuth this technique is...

View Article

StackOverflow Reputation As A Hiring Metric

I’ve been using StackOverflow nearly since it started back in 2008. I remember when it first started there didn’t seem to be much going on and so I forgot about it for a time. Then, one day, while...

View Article


Image may be NSFW.
Clik here to view.

iOS Crash Logs On iCloud Synced Devices

I tweeted a call for help today to figure out how to get crash logs from a device that syncs with iCloud rather than with iTunes and a cable. The issue is that you can only sync with one and not both...

View Article

Creating A Happy Appy Song

App developers need ways to promote their apps and audio and video provide a way to do that. At a recent iOS developer camp in Colorado I gave a talk in which I demonstrated some ways developers can...

View Article


Image may be NSFW.
Clik here to view.

Using GIT In Xcode

Git has become a very popular version control system in iOS and Mac development. Git comes with a set of command line tools to check status, commit changes, view logs, make and merge branches, and...

View Article

Automating OS X app test build distribution across multiple OS versions

With Apple now shipping OS X upgrades every 12-15 months, Mac developers are very quickly finding themselves supporting their apps on multiple OS X versions. Until recently, my approach to testing on...

View Article


Image may be NSFW.
Clik here to view.

Fetched Properties; useful?

Core Data has a number of features and abilities that are not commonly used. Chief among those are fetched properties. In discussing them with a number of developers, most have never heard of them and...

View Article

Deleting Objects in Core Data

I very rarely speak out against another blog post. I find the resulting argument back and forth draining. However, there are exceptions and one occurred over the weekend. Brent Simmons has been...

View Article

Image may be NSFW.
Clik here to view.

The Core Data stack in Swift

Whenever Apple releases a new version of Xcode one of the first things that I do is look at the default templates and see if there are any new or interesting things. This year, with the release of...

View Article
Browsing all 34 articles
Browse latest View live




Latest Images