Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSOpenResFile gives eofErr in Jaguar; need to understand



Jerry,

What sort of network connection are you copying over? (Does it serve up the resource fork?)

-39 is documented as "eofErr"; "end of file", I suppose.

Yes. It sure sounds like the fork was empty.

BTW, in Tiger even "cp" from the command line will copy the resource fork.


FYI, here are some easy ways to examine resource forks from Terminal:

Entire contents:
	/Developer/Tools/DeRez /path/to/file

Just the resource types & IDs:
	/Developer/Tools/DeRez /path/to/file | grep data

	(Those two require the Developer Tools to be installed.)

On an HFS/HFS+ disk, you can refer to the resource fork by adding "/..namedfork/rsrc" to the end of the path:

To see the file size, etc.:
	ls -l /path/to/file/..namedfork/rsrc

To see the whole fork in hex:
	hexdump -C /path/to/file/..namedfork/rsrc

Cheers,

--Dave

On Oct 27, 2005, at 4:21 PM, Jerry Krinock wrote:

on 05/10/27 14:34, John Stiles at email@hidden wrote:

If you examine the Jaguar-generated webloc file, does it actually
have a resource fork?

Note here that, as you asked, I am talking about a Safari/Jaguar- generated
.webloc file, not the Safari/Tiger-generated one I did my testing with.


If I copy this file over the network to my Tiger powerbook, it has 0 data
bytes and 0 resource bytes and will not open Safari. I cannot explain this
since I am using drag-and-drop from Finder windows which should, I thought,
preserve resource forks.


So, I had to install HexEdit and Resorcerer on the Jaguar box. That's why
it took me so long to reply.


Here is what is in the .webloc files:

Safari/Jaguar-generated .webloc file:
  Data fork:
    0 bytes
  Resource fork contains shows 3 resources:
    'drag', type 128, contains the names of the other two resources
    'TEXT', type 256, contains the URL I am looking for
    'url ', type 256, also contains the URL I am looking for.

Safari/Tiger-generated .webloc file:
  Data fork:
    0 bytes
  Resource fork contains shows 4 resources:
    'drag', type 128, contains the names of the other three resources
    'TEXT', type 256, contains the URL I am looking for
    'url ', type 256, also contains the URL I am looking for.
    'urln', type 256, contains 5 bytes:  41 70 70 6C 65

I hope this raises more answers than questions. Thanks!

Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: FSOpenResFile gives eofErr in Jaguar; need to understand (From: Jerry Krinock <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.