Going to a website in Cocoa

Moderator
Posts: 916
Joined: 2002.10
Post: #1
I want people to go to my website (or to a website) when they click on my button. How do I do this?
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #2
I've been using this and it seems to work just fine -

Code:
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.something.com/"]];
Quote this message in a reply
Moderator
Posts: 916
Joined: 2002.10
Post: #3
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.
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #4
Not sure about that one. I use plimus and my links are real easy, for example https://www.plimus.com/plimus/jsp/buynow...Id=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.
Quote this message in a reply
Member
Posts: 283
Joined: 2006.05
Post: #5
If you have to use a form, you could use an NSWebView. It's surprisingly easy to use.
Quote this message in a reply
Moderator
Posts: 916
Joined: 2002.10
Post: #6
Jake Wrote:Not sure about that one. I use plimus and my links are real easy, for example https://www.plimus.com/plimus/jsp/buynow...Id=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 Sad

Anyways, whatever it is, I need to get this thing out now. More options can come when I have more money (and possibly motivation).
Quote this message in a reply
Post Reply