How do you make a button link to a website in Cocoa? -


How can you create a button in Cocoa when you click on open web page?

The way Chuck said, just look. For example, if I want to link to Google.com, then you will:

  - (IBAction) goToLink: (ID) sender {[[NSWorkspace sharedWorkspace] openURL: [ NSURL URLWithString: @ "http://google.com"]]; }  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -