Re: Opening URLs (Clarification)
Re: Opening URLs (Clarification)
- Subject: Re: Opening URLs (Clarification)
- From: Richard Schreyer <email@hidden>
- Date: Thu, 25 Oct 2001 08:48:07 -0700
Ah, I didn't make this clear enough. I meant that when a user clicks on
a whatever://foo.com link, I want *my* software to respond, and open the
URL (this is a custom protocol), just like omniweb does for http:// and
Mail does for mailto:.
Richard Schreyer
On Thursday, October 25, 2001, at 06:21 AM, Stiphane Sudre wrote:
On jeudi, octobre 25, 2001, at 09:57 , Richard Schreyer wrote:
Can someone point me to some documentation on how to open URLs in a
cocoa application?
I've done some hunting around in the OmniWeb and Mail info.plist
files, and saw the CFURL entries there, but I can't find any
documentation on where to go from there.
To open it and view it in a Browser (or another software) ?
It's both NSURL and NSWorkspace in this case:
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:url_]];