Re: Accessing a file "comment"
Re: Accessing a file "comment"
- Subject: Re: Accessing a file "comment"
- From: Wade Tregaskis <email@hidden>
- Date: Wed, 24 Nov 2004 19:47:03 +1100
Using the finder, one can give a file a unique comment.
Yet, nothing in cocoa seems to allow one to access/change this
attribute.
Yes, there is no way to access or modify Finder info from Cocoa, or
even directly via Carbon. If you dig hard enough, you dig up a few
choice examples like
<http://developer.apple.com/samplecode/MoreFiles/listing24.html> - see
the DTGetComment function, in particular. At a glance it looks like
you have to obtain the comment ID from the extended file info (which
can be done using Carbon File Manager calls) and then look that up
manually in the desktop database file - i.e. a completely gross
solution, but apparently the only one.
There may be some 3rd party libraries which provide nicer wrappers over
this, but I'm not aware of any.
Wade Tregaskis (AIM, Yahoo & Skype: wadetregaskis, ICQ: 40056898, MSN &
email: email@hidden, Jabber:
email@hidden)
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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