Skip navigation.
 
mlRe: Resource Fork - is this a good use/the right thing to do?
FROM : Daniel DeCovnick
DATE : Wed Apr 23 18:41:42 2008

That the Resource Manager is still around in 64-bit definitely 
alleviates one of my concerns - "will whatever I use still be around 
in the future?"

Thanks much,
Dan
On Apr 23, 2008, at 10:12 AM, Sean McBride wrote:

> On 4/23/08 1:21 AM, Daniel DeCovnick said:
>

>> I'm writing an application that opens particular kinds of files,
>> parses them, displays an editable graphical representation of the
>> contents of a file, and saves the results of the changes to the file.
>> However, some graphical changes don't result in changes to the
>> original file, yet those changes need to be saved - a little bit
>> analogous to the Finder saving the positions of icons in a window, 
>> but
>> not changing the files themselves. This seems like a perfect use of
>> package documents (a la .rtfd), except for one problem: the files I'm
>> opening aren't mine, and should remain openable in other 
>> applications,
>> so I can't wrap them up. I'd also really like to avoid making changes
>> to the files themselves, at least the portions that their normal
>> programs read.

>
> The Resource fork has been used for a long time for exactly that
> purpose.  As others have said, extended attributes are another
> possibility.  Both risk being clobbered by poorly written tools.
> Personally, I think a resource is a better idea.  They're actually 
> less
> likely to get clobbered as they have been around longer (you could 
> even
> copy them to a Classic system, or 10.0, etc.).  The Resource Manager 
> is
> not deprecated and is even available in 64 bit (unlike other parts of
> Carbon).  NDResourceFork provides a nice Cocoa wrapper over the C 
> APIs.  See:
> <http://homepage.mac.com/nathan_day/pages/source.xml>
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                <email_removed>
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>

Related mailsAuthorDate
mlResource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 23, 07:21
mlRe: Resource Fork - is this a good use/the right thing to do? Jens Alfke Apr 23, 08:07
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 23, 09:41
mlRe: Resource Fork - is this a good use/the right thing to do? Rob Keniger Apr 23, 14:14
mlRe: Resource Fork - is this a good use/the right thing to do? Ken Thomases Apr 23, 14:29
mlRe: Resource Fork - is this a good use/the right thing to do? Matt Gough Apr 23, 15:01
mlRe: Resource Fork - is this a good use/the right thing to do? Adam R. Maxwell Apr 23, 15:41
mlRe: Resource Fork - is this a good use/the right thing to do? Sean McBride Apr 23, 16:12
mlRe: Resource Fork - is this a good use/the right thing to do? Jens Alfke Apr 23, 17:10
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 23, 18:05
mlRe: Resource Fork - is this a good use/the right thing to do? John Stiles Apr 23, 18:25
mlRe: Resource Fork - is this a good use/the right thing to do? Gerd Knops Apr 23, 18:41
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 23, 18:41
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 23, 19:00
mlRe: Resource Fork - is this a good use/the right thing to do? Uli Kusterer Apr 23, 20:14
mlRe: Resource Fork - is this a good use/the right thing to do? Uli Kusterer Apr 23, 20:25
mlRe: Resource Fork - is this a good use/the right thing to do? Chris Williams Apr 23, 21:33
mlRe: Resource Fork - is this a good use/the right thing to do? Mike Fischer Apr 24, 02:59
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 03:53
mlRe: Resource Fork - is this a good use/the right thing to do? Chris Suter Apr 24, 04:59
mlRe: Resource Fork - is this a good use/the right thing to do? Jason Stephenson Apr 24, 05:33
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 05:55
mlRe: Resource Fork - is this a good use/the right thing to do? Dmitry Markman Apr 24, 06:17
mlRe: Resource Fork - is this a good use/the right thing to do? Graham Cox Apr 24, 06:28
mlRe: Resource Fork - is this a good use/the right thing to do? Chris Suter Apr 24, 06:46
mlRe: Resource Fork - is this a good use/the right thing to do? Graham Cox Apr 24, 06:52
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 08:14
mlRe: Resource Fork - is this a good use/the right thing to do? Chris Suter Apr 24, 08:27
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 09:16
mlRe: Resource Fork - is this a good use/the right thing to do? Uli Kusterer Apr 24, 11:34
mlRe: Resource Fork - is this a good use/the right thing to do? Uli Kusterer Apr 24, 11:52
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 13:08
mlRe: Resource Fork - is this a good use/the right thing to do? Michael Ash Apr 24, 13:44
mlRe: Resource Fork - is this a good use/the right thing to do? glenn andreas Apr 24, 14:41
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 17:28
mlRe: Resource Fork - is this a good use/the right thing to do? Hamish Allan Apr 24, 17:36
mlRe: Resource Fork - is this a good use/the right thing to do? Bill Monk Apr 24, 20:52
mlRe: Resource Fork - is this a good use/the right thing to do? Scott Ribe Apr 25, 16:49