Re: .webloc files and Safari (newbie)
Re: .webloc files and Safari (newbie)
- Subject: Re: .webloc files and Safari (newbie)
- From: Jérome Foucher <email@hidden>
- Date: Tue, 9 Dec 2003 11:06:26 +0100
On 8 dic. 03, at 20:33, Nicholas Riley wrote:
On Mon, Dec 08, 2003 at 03:07:36PM +0100, J?rome Foucher wrote:
If I drag an URL from Safari to my desktop, I can see three ressources
inside :
One "TEXT" which is the URL as a C string
One "url " which is also the URL as a C string
One "drag" which is a structure describing which ressources are
present in the fork.
If you're familiar with Mac OS 9's URL clippings, it's the exact same
format, except it's stored in the data fork instead of the resource
fork.
You cannot access the content using Cocoa. You need Carbon to deal
with
ressources.
How are you seeing this in the data fork? I am certainly not, as it
seems is the case with the originator of this thread:
% launch -f ~/Desktop/Bookmarks.webloc
/Users/nicholas/Desktop/Bookmarks.webloc: document
type: 'ilht' creator: 'MACS'
kind: Web Internet Location
data fork size: zero bytes on disk (zero bytes used)
rsrc fork size: 4.0 KB on disk (488 bytes used)
[...]
You're right. It's a real resource fork. I opened the file using
HexEdit thinking it was a data fork, but HexEdit managed to open the
resource fork.
Anyway, what I've told about the resource fork's contents is true.
So the format is the same as web locations on Mac OS 9.
Jirome
_______________________________________________
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.