• 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: Getting/Setting FinderInfo attributes using native Cocoa API?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting/Setting FinderInfo attributes using native Cocoa API?


  • Subject: Re: Getting/Setting FinderInfo attributes using native Cocoa API?
  • From: Laurent Daudelin <email@hidden>
  • Date: Thu, 13 Oct 2016 12:39:21 -0400

I use the NSFileManager when accessing file’s attributes. That’s the only way I know in Cocoa.

-Laurent.
--
Laurent Daudelin							email@hidden <mailto:email@hidden>
AIM/iChat/Skype:LaurentDaudelin 				http://www.nemesys-soft.com/ <http://www.nemesys-soft.com/>
Logiciels Nemesys Software

> On Oct 13, 2016, at 12:21, Stephane Sudre <email@hidden> wrote:
>
> No specific attributes in the FinderInfo data. I just need to be able
> to get it and set it on another file/folder.
>
> The labels case you mention is an interesting one. I had not thought
> about it when it comes to cross-compatibility with the different OS
> versions I need to support.
>
> On Thu, Oct 13, 2016 at 4:45 PM, Gary L. Wade
> <email@hidden> wrote:
>> What attributes in particular do you need to work with? In case you might be dealing with labels, those moved from the simple bitmask flag to separate values in their own extended attribute. Other values may have changed similarly but I haven't kept up with them.
>> --
>> Gary L. Wade (Sent from my iPad)
>> http://www.garywade.com/
>>
>>> On Oct 13, 2016, at 7:03 AM, Stephane Sudre <email@hidden> wrote:
>>>
>>> Question:
>>>
>>> Is there a native Cocoa API that can replace the
>>> FSGetCatalog/FSSetCatalog API when it comes to retrieving/setting the
>>> FinderInfo (and FinderExtInfo) attributes of a file?
>>>
>>> OS X 10.8 and later.
>>>
>>> Problem:
>>>
>>> The FS CoreCarbon APIs are deprecated but apparently, there's nothing
>>> to replace them completely in Cocoa (Foundation).
>>>
>>> The NSURL resources APIs does not support the FinderInfo attributes
>>> (no obvious key in the broken documentation and using
>>> "com.apple.FinderInfo" does not work).
>>>
>>>
>>> Workaround:
>>>
>>> This can be worked around by using the xattr.h APIs but if it could be
>>> possible to avoid this, it would be better.
>>
>
>
>
> --
> Packaging Resources - http://s.sudre.free.fr/Packaging.html
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please 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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: 
 >Getting/Setting FinderInfo attributes using native Cocoa API? (From: Stephane Sudre <email@hidden>)
 >Re: Getting/Setting FinderInfo attributes using native Cocoa API? (From: "Gary L. Wade" <email@hidden>)
 >Re: Getting/Setting FinderInfo attributes using native Cocoa API? (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Getting/Setting FinderInfo attributes using native Cocoa API?
  • Next by Date: Re: Getting/Setting FinderInfo attributes using native Cocoa API?
  • Previous by thread: Re: Getting/Setting FinderInfo attributes using native Cocoa API?
  • Next by thread: Re: Getting/Setting FinderInfo attributes using native Cocoa API?
  • Index(es):
    • Date
    • Thread