Re: NSFileHFSTypeCode = 'brok'
Re: NSFileHFSTypeCode = 'brok'
- Subject: Re: NSFileHFSTypeCode = 'brok'
- From: Paul Kim <email@hidden>
- Date: Fri, 16 Feb 2007 23:20:55 -0500
First off, my apologies if my Carbon knowledge is off base. I'm
mostly a Cocoa guy.
'brok' is what the Finder uses to designate that a file is busy. Not
sure why it doesn't use 'bzy ' (kFirstMagicBusyFiletye ->
kLastMagicBusyFileType) which from what I understand is the
traditional way to indicate this. Note that the FSCopyObject code
example uses 'bzy ' while the FSCopyObjectSync/FSCopyObjectASync
functions that have been incorporated into the Carbon File Manager
APIs in Tiger use 'brok'.
As far as Finder is concerned, the file is busy and it will not allow
things to be done to it in this state.
It's not a Spotlight specific thing. Spotlight just sucks in that
data from elsewhere. Under /Developer/Tools, the GetFileInfo and
SetFile programs will allow you to inspect and set the type codes as
well as other flags.
To tie it back to your questions:
1) It is an HFS attribute. It is not Spotlight specific. Like other
file attributes you see via 'mdls', Spotlight aggregates data from
other places. The 'brok' code specifically is not documented last i
checked.
2) Not sure how to get mdfind to work in this instance but you can
programatically get all Spotlight attributes via
MDSchemaCopyAllAttributes().
Hopefully, my explanation above clarifies more than it confuses.
Paul Kim
------------------------------------
Chief Noodler - Noodlesoft
email@hidden
http://www.noodlesoft.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden