NSKeyedArchiver
provides some support for archiving C primitive types but provides no support for pointers to C structs. I'll show you how you can archive a linked list of C structs, despite the lack of support in NSKeyedArchiver
.NSKeyedArchiver
provides some support for archiving C primitive types but provides no support for pointers to C structs. I'll show you how you can archive a linked list of C structs, despite the lack of support in NSKeyedArchiver
.NSMutableSet
methods good for tracking already-visited nodes? How much overhead does an NSMutableArray
FIFO queue impose relative to a depth-first search (which doesn't require a FIFO queue)? Does NSMutableArray
perform better if objects are pushed onto the front, or the back? In this post, I present answers to these questions and more.UIScrollView
and UIPageControl
in Cocoa Touch allow for user interfaces with multiple panning pages. The sample project that Apple provides (PageControl) keeps all child views for every page in a lazily loaded array. I'll show you how you can implement this using just two child views, no matter how many virtual pages you wish to represent.