• 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: NSFileHFSTypeCode = 'brok'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSFileHFSTypeCode = 'brok' (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: NSFileHFSTypeCode = 'brok'
  • Next by Date: Re: Cocoa-dev Digest, Vol 4, Issue 157
  • Previous by thread: NSFileHFSTypeCode = 'brok'
  • Next by thread: Re: NSFileHFSTypeCode = 'brok'
  • Index(es):
    • Date
    • Thread