Re: Launching an URL in Cocoa
Re: Launching an URL in Cocoa
- Subject: Re: Launching an URL in Cocoa
- From: Hasan Diwan <email@hidden>
- Date: Tue, 6 Aug 2002 01:03:46 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- - (IBAction) buttonActionOpensURL:(id) sender {
[[NSWorkspace sharedInstance] openURL:[NSURL
URLWithString:@"
http://www.yahoo.com"]];
return nil;
}
will open Yahoo when the button it's tied to is clicked in the
user's default browser, set in system preferences.
On Tuesday, August 6, 2002, at 12:52 AM, John McGruer wrote:
Can someone point me to any documentation that would explain how I could
launch an URL when a button is clicked?
I simply want to have Explorer/Netscape etc open to the web site when
the
button is clicked. Thanks...
John
_______________________________________________
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.
Hasan Diwan
OpenPGP KeyID: 0xBE42DCA6
Fingerprint: 1CB0 47E3 0A24 DAC1 DCCA 4225 F166 40C2 BE42 DCA6
http://hasandiwan.net/~hdiwan/gpg.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iD8DBQE9T1i78WZAwr5C3KYRAqeUAJ46nFx/zQzoWQvxXyH4vic5VhY/xwCfQcDX
hctAw98b8kshA63jzXurjW0=
=Yw9o
-----END PGP SIGNATURE-----
_______________________________________________
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.