I asked this question to respectable people on the IRC # macdev channel on freenode.net, and I got some really good answers.
Mike Ash ( mikeash.com ) suggests implementing a local web server inside my application. For complex cases, I will probably do it. However, I just use the built-in initWithContentsOfURL:(NSURL *)url NSData method.
In simpler cases, Mike says an alternative method is to pass the base64 encoded dummy data directly to the NSData initializer. (Use data://dummyDataEncodedAsBase64GoesAfterTheDataProtocolThingy .)
Similarly, Alistra suggests using local file URLs that point to files containing layout data.
Moshe source share