Re: Open URL when click Button
Re: Open URL when click Button
- Subject: Re: Open URL when click Button
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 10 Apr 2003 01:40:39 -0700
On Thursday, April 10, 2003, at 01:25 AM, Chad Eckles wrote:
How can I open a URL to a website when a button is pressed ?
- (IBAction)someAction:(id)sender
{
[[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:@"
http://www.apple.com/"]];
}
Of course, substitute the URL for whatever you want to use...
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
"Building the future and keeping the past alive are one and the same
thing." - Metal Gear Solid 2
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.