Archive for February, 2011

CATiledLayer

Excellent introduction to CATiledLayer over at Cocoa Is My Girlfriend today:

Subduing CATiledLayer

… It seems like a magical sort of technology because so much of its implementation is a bit of a black box and this fact contributes to it being misunderstood. CATiledLayer simply provides a way to draw very large images without incurring a severe memory hit. This is important no matter where you’re deploying, but it especially matters on iOS devices as memory is precious and ...

Continue Reading →
0

Sensible TableView

So you want some more help with your table views than the open source tutorials we’ve mentioned here and there? Weeeelll, maybe you want to spend some money — $99, to be exact — and buy Sensible TableView. What do you get for that $99? Quite a bit, reputedly:

This easily is the best iOS TableView framework I’ve ever seen!

… Sensible TableView (STV) is the most comprehensive, fully featured and best designed Table View framework I’ve ever seen. ...

Continue Reading →
0

Mac App Store vs. Download

Trying to deal with Mac App Store vs. direct downloads of your app? Here’s some good thoughts:

This App Is Your App

… This leads to a conundrum if you continue to sell software directly, or offer preview beta releases for direct download. How can you offer access to these releases for customers who purchased through the MAS and thus do not have the “Registration Code” that direct-purchase customers receive? Apple provides no means of determining the identities of, or contact ...

Continue Reading →
0

Cocoa C++ Wrappers

So let’s say that you’re looking at developing an iPhone app that needs to share source with Another Platform, so C++ is the logical common ground; but you’d like to keep your iPhone side written the right way, of course. Here’s a helpful post about wrapping std::vector in an NSArray:

Mixing STL, NSArray and Bindings

I am currently writing a crossplatform library that needed to be quick, small and efficient. The library is a parser for a particular file format that ...

Continue Reading →
0

JSON Parsing

Looking for a JSON parser? Care about speed? Check out

Cocoa JSON parsing libraries, part 2

Compares:

and the takeaway?

… So if you’re looking for a fast JSON library for your iPhone app, choose JSONKit.

There you go then!

h/t: @shashivelur!

UPDATE:

A plist vs. JSON comparison here with some different contenders, same general conclusion.

Continue Reading →
2

Blocks Party

Excellent article here at Cocoa Samurai on applications of blocks to make your coding easier, intelligibler, threadsafer, and generally awesomer:

Practical Design Patterns with Blocks and Grand Central Dispatch

following on from the likewise excellent introduction to blocks

A Guide to Blocks & Grand Central Dispatch (and the Cocoa API’s making use of them)

And while we’re talking about blocks and GCD, there’s a whole folder full of links here from introductions onwards through tips, tricks, and issues we were going ...

Continue Reading →
1

MTStatusBarOverlay

This is kinda nifty: Feel like using the status bar for … well … status, like this,

Screen shot 2011-02-22 at 10.32.44 PM.png

or to bring down a detail view?

Screen shot 2011-02-22 at 10.33.32 PM.png

What you need then is MTStatusBarOverlay on github!

This class provides a custom iOS (iPhone + iPad) status bar overlay window known from Apps like Reeder, Google Mobile App or ...

Continue Reading →
0

UITableView Revisited

We’ve mentioned before various UITableView tips from Matt Gallagher, but here’s a collection of his current practices worth checking out:

UITableView construction, drawing and management (revisited)

In this post, I’ll show you the current classes I use to construct and manage UITableViews in a number of different projects. This code is an amalgamation and evolution of some ideas that I’ve presented in a few earlier posts including my posts on heterogenous cells in a table view and easy custom table ...

Continue Reading →
2

Compound Literals

Never ceases to amaze how that Mike Ash fellow keeps teaching us new stuff about the basic C language. The latest is

Friday Q&A 2011-02-18: Compound Literals

This time we were sure there wouldn’t be anything new to us, we use compound literals for field initialization every time we create a struct pretty much … and wrong again!

Specifically, did you know that compound literals are mutable?? We did not know that compound literals are mutable

One really unintuitive thing about compound literals ...

Continue Reading →
1

XML Interchange: Fremont

So let’s say you’ve got XML parsing needs more complex than RSS reading, or even worse, you actually have to exchange data with some back end service in XML format. Lot of work ahead? Well, maybe not, check this out:

Fremont XML Library – “The best XML code is code that you don’t have to write.”

If you are developing software programs that integrate with external systems, be they client/server or web-service based applications, it is highly likely you’ll cross ...

Continue Reading →
1
Page 1 of 3 123