<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.caminobrowser.org/index.php?action=history&amp;feed=atom&amp;title=Development%3AOpening_URLs_and_Files</id>
	<title>Development:Opening URLs and Files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.caminobrowser.org/index.php?action=history&amp;feed=atom&amp;title=Development%3AOpening_URLs_and_Files"/>
	<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=Development:Opening_URLs_and_Files&amp;action=history"/>
	<updated>2026-05-08T13:52:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>http://wiki.caminobrowser.org/index.php?title=Development:Opening_URLs_and_Files&amp;diff=11185&amp;oldid=prev</id>
		<title>Sardisson: details the URL part; stubs in the file part, because murph&#039;s comments in {{bug|364497}} comment 5 seem completely wrong now, at least for URLs</title>
		<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=Development:Opening_URLs_and_Files&amp;diff=11185&amp;oldid=prev"/>
		<updated>2010-05-30T05:07:13Z</updated>

		<summary type="html">&lt;p&gt;details the URL part; stubs in the file part, because murph&amp;#039;s comments in {{bug|364497}} comment 5 seem completely wrong now, at least for URLs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There are multiple ways that Camino can receive requests to open URLs or files from external applications, and thus multiple codepaths to handle these requests.&lt;br /&gt;
&lt;br /&gt;
==URLs==&lt;br /&gt;
&lt;br /&gt;
# openURL: in MainController handles URL-only drags to the Dock icon and URLs from our Open URL service.&lt;br /&gt;
#* The pasteboard gives us unescaped Unicode URLs via this codepath.&lt;br /&gt;
&lt;br /&gt;
# MainController’s init: checks NSUserDefaults for the -url key, i.e., &amp;lt;code&amp;gt;./Camino.app/Contents/MacOS/Camino -url http://caminobrowser.org&amp;lt;/code&amp;gt;&lt;br /&gt;
#* Whatever provides that to us also gives us unescaped Unicode URLs.&lt;br /&gt;
&lt;br /&gt;
# GetURLCommand.mm handles the GURL AppleEvent (opening links from external applications, the &amp;lt;code&amp;gt;open&amp;lt;/code&amp;gt; command in the Terminal, and the &amp;lt;code&amp;gt;open location&amp;lt;/code&amp;gt; AppleScript command).&lt;br /&gt;
#* While the &amp;lt;code&amp;gt;open&amp;lt;/code&amp;gt; command in the Terminal and links from external apps come as percent-escaped URLs, the &amp;lt;code&amp;gt;open location&amp;lt;/code&amp;gt; GURL AppleScript command sends unescaped URLs (at least on 10.5) just like user-defaults and the pasteboard :P&lt;br /&gt;
&lt;br /&gt;
==Files==&lt;br /&gt;
&lt;br /&gt;
# NSApplication delegate method application:openFile: in MainController.mm&lt;br /&gt;
# openPanelDidEnd: in MainController.mm&lt;br /&gt;
# GetURLCommand.mm&lt;br /&gt;
&lt;br /&gt;
In all three cases, we rely on decodeLocalFileURL: in NSURL+Utils.m to parse URLs out of URL-container files (old- and new-style .weblocs, .caminobookmarks, and IE .url files).&lt;/div&gt;</summary>
		<author><name>Sardisson</name></author>
		
	</entry>
</feed>