iOS 5 JSON Parsing Results in Cocoa Error 3840

One thing that strikes me as incorrect is this: [[NSBundle mainBundle] pathForResource:@”Locations-JSON” ofType:@”rtf”] Your data is an RTF file?? It should be a txt file (or any other sort of plain text file). RTF files usually contain text formatting data, like this: {\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww10800\viewh8400\viewkind0 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural \f0\fs24 \cf0 \{“States”: [\{“Name”: “Arizona”,”Cities”: [\{“Name”: “Phoenix”\}]\},\{“Name”: … Read more

Is it possible to get the iOS 5.1 SDK for Xcode 4.2 on Snow Leopard?

To get Xcode 4.2 on Snow Leopard to run code on a device running iOS 5.1 you can do this: If you have another Mac running Lion and Xcode 4.3.1 you can copy the files from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176) Place the copied files in the equivalent place on your Snow Leopard Mac: probably /Developer/Platforms/iPhoneOS.platform/DeviceSupport Similarly copy … Read more