Posts

Showing posts from January, 2013

Mac Audio Convert Tool

Hi guys. It's really painful when you need to have a soundtrack in one format when you have another format. I found this really useful tool named SoX for Mac OS which you can download free from here .

iPhone manually set Cookies

Hi guys !!! You may have encountered situations where you wish to set some cookies through your app code. There is a very basic procedure to do it. 1. Create a dictionary with all the cookie properties 2. Create a Cookie passing the property dictionary which you created 3. Set the Cookie using the NSHTTPCookieStorage class First create a properties dictionary. NSDictionary *propertiesUsername = [ NSDictionary dictionaryWithObjectsAndKeys :                                         @".yourdomain.com" , NSHTTPCookieDomain ,                                         @"cookie_name" , NSHTTPCookieName ,                                         @"cookie_value" , NSHTTPCookieValue ,                                         @"/" , NSHTTPCookiePath ,                                         [[ NSDate date ] dateByAddingTimeInterval : 60 * 60 * 24 ], NSHTTPCookieExpires ,                                         nil ];