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: Want to know about resources of Resource fork




On Jun 28, 2006, at 11:28 AM, Philip Aker wrote:

But to stick to the Resource Manager:

1.

CFTypeRef cf = NULL;

err = GetEventParameter( theEvent, ..., typeWildCard, ... &cf );
err = AddCFResource( refnum, some32bitID, &cf ); // Resource Manager knows the type because it's available from object.


CFDictionaryRef dict = NULL;
err = GetCFResource( refnum, some32bitID, &dict ); // Resource Manager knows the type because it's available from object.


2.

CFResourceStream.h
HIArchiveToResourceSteam(...);
3.

cp file/..namedFork/rsrc/icns/128 > my.icns

cat somebig.tif >> file/..namedFork/rsrc/TIFF/128/somebig.tif/64

4.

Direct support in CarbonEvents:
enum {
	kEventClassResource = 'rsrc',
	kEventResourceRead = 'read',
	kEventResourceAdd = 'radd',
	kEventResourceUpdate = 'upda',
	....

I can't quite see when these would be useful enough for them to implement them. Can you give some examples?

BTW, For those interested, we are planning a "What's new in the File System" session at WWDC which will showcase some long requested developer features available in Leopard.

How's about a li'l hint?

Yeah, right. LOL

Larry
_______________________________________________
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: Want to know about resources of Resource fork (From: Deric Horn <email@hidden>)
 >Re: Want to know about resources of Resource fork (From: Philip Aker <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.