Hi All,
I have been coding for iPhone for a little bit now and was looking at converting one of my apps to the mac app store,
It's a URL shrinker and I wondered if anyone can help on changing the current code i have to suit Cocoa.
The code for the iPhone app is here:
// Do something useful in here instead of sleeping ...
NSString *mysite = @"http://www.mydomain/api.php?URL=";
NSString *ourl = oldUrl.text;
// adds the old url to the end of the api
mysite = [mysite stringByAppendingString

url];
//do the posting thing
NSURL *blurl =[NSURL URLWithString: mysite];
NSString *webpage = [NSString stringWithContentsOfURL:blurl encoding:NSASCIIStringEncoding error:nil];
newUrl.text = webpage;
shareURL = webpage;
Many Thanks
Mike