SSL connection iphone

Here I have posted code how to calling “Web service” which are SSL enabled. like “https://test.com/testservice.svc/gettest” #import “Hello_SOAPViewController.h” @interface NSURLRequest (withHttpsCertificates) + (BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host; + (void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host; @end @implementation Hello_SOAPViewController NSMutableData *webData; – (void)viewDidLoad { ////////////////////////////////////////////////// //Web…

Read More

ESC handle by AppleScript

tell application “System Events” tell application “TextEdit” to activate tell application “TextEdit” to run keystroke “s” using {command down} key code 53 end tell ——————- tell application “System Events” tell application “TextEdit” to activate tell application…

Read More

AppleScript in Cocoa Class

//message= TextEdit:f NSString *string = message; // split the text by the : to get an array containing { “AAA”, “BBB” } NSArray *splitText = [string componentsSeparatedByString:@”:”]; // form a new string of the form “BBB…

Read More