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
Post a Comment