View Full Version : Going to a website in Cocoa
skyhawk
2007.03.29, 05:46 PM
I want people to go to my website (or to a website) when they click on my button. How do I do this?
I've been using this and it seems to work just fine -
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.something.com/"]];
skyhawk
2007.03.29, 06:37 PM
follow up:
how do I get a URL to send people to buy something at paypal. All they give me are forms. don't know how to work those in.
Not sure about that one. I use plimus and my links are real easy, for example https://www.plimus.com/plimus/jsp/buynow.jsp?contractId=1641270
I'm sure paypal has something similar, I used them several years ago. I would recommend NOT using paypal though, I've had a few users refuse to use them back when they were my only method of payment. I personally lost $1700 because they decided to reverse a transaction a week after I sold my laptop on eBay, so I try to avoid them whenever possible and I will NEVER accept them as payment for anything over $100 again.
maximile
2007.03.29, 07:25 PM
If you have to use a form, you could use an NSWebView. It's surprisingly easy to use.
skyhawk
2007.03.29, 07:27 PM
Not sure about that one. I use plimus and my links are real easy, for example https://www.plimus.com/plimus/jsp/buynow.jsp?contractId=1641270
I'm sure paypal has something similar, I used them several years ago. I would recommend NOT using paypal though, I've had a few users refuse to use them back when they were my only method of payment. I personally lost $1700 because they decided to reverse a transaction a week after I sold my laptop on eBay, so I try to avoid them whenever possible and I will NEVER accept them as payment for anything over $100 again.
damn, cause my game costs $101 :(
Anyways, whatever it is, I need to get this thing out now. More options can come when I have more money (and possibly motivation).
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.