• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Temporary badging on Files and Folders.What is wrong in the code attached? - Part 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Temporary badging on Files and Folders.What is wrong in the code attached? - Part 1 (From: Manish Pattath <email@hidden>)

  • Prev by Date: Part II - Temporary badging on Files and Folders.What is wrong in the code attached?
  • Next by Date: Re: Book about creating Cocoa widgets
  • Previous by thread: Temporary badging on Files and Folders.What is wrong in the code attached? - Part 1
  • Next by thread: Part II - Temporary badging on Files and Folders.What is wrong in the code attached?
  • Index(es):
    • Date
    • Thread