Re: Temporary badging on Files and Folders.What is wrong in the code attached? - Part 1
Re: Temporary badging on Files and Folders.What is wrong in the code attached? - Part 1
- Subject: Re: Temporary badging on Files and Folders.What is wrong in the code attached? - Part 1
- From: Frederick Cheung <email@hidden>
- Date: Sat, 6 Nov 2004 11:49:43 +0000
On 6 Nov 2004, at 11:42, Manish Pattath wrote:
Hi,
I want to temporarily apply badge on selected files and folders.
though i am successful in it,there are some hiccups.
[snip]
osErrResult =
FSCreateResourceFile(&pToFSRef,8,(UniChar*)"\000I\000c\000o\000n\000\r"
,kFSCatInfoFinderXInfo,&info,fork.length,fork.unicode,&pToFSRef2,NULL);
This is dodgy. I can't claim to know whether those escapes are ok, but
in any case the length of the string is not 8, since Icon is just 4
characters.
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden