Accessing Info.plist within your iPhone App

I needed to access the app name w/in my app. I figured I cd get it from the Info.plist display name or executable. Yep. See all the values w/ this (print out below)… [code] NSLog(@"%@", [[NSBundle mainBundle] infoDictionary]); [/code] Or get a single value w/ this… [code] NSString *exeName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"]; [/code] You Read more about Accessing Info.plist within your iPhone App[…]

iPhone HTTP Cookie support

In trying to figure out how to get the cookies from the headers in HTTP and then return them on subsequent calls, I found this… NSHTTPCookieStorage *cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage]; [cookies setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways]; Works like a champ. 🙂