Re: FSPathMakeRef deprecated - replacement for LSSetItemAttribute?
On 22 Jun 2014, at 00:20, Trygve Inda cocoa...@xericdesign.com wrote: FSPathMakeRef is deprecated in 10.8, but LSSetItemAttribute requires an FSRef. Is there a correct way to create an FSRef or perhaps there is a replacement for LSSetItemAttribute to modernize: LSSetItemAttribute(fsRef, kLSRolesAll, kLSItemQuarantineProperties, NULL); Check out the headers for this call in Xcode 6, the comments there mention what call to use instead. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: FSPathMakeRef deprecated - replacement for LSSetItemAttribute?
On 22 Jun 2014, at 00:20, Trygve Inda cocoa...@xericdesign.com wrote: FSPathMakeRef is deprecated in 10.8, but LSSetItemAttribute requires an FSRef. Is there a correct way to create an FSRef or perhaps there is a replacement for LSSetItemAttribute to modernize: LSSetItemAttribute(fsRef, kLSRolesAll, kLSItemQuarantineProperties, NULL); Check out the headers for this call in Xcode 6, the comments there mention what call to use instead. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de Yes they do, but not what parameters to pass to it. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: FSPathMakeRef deprecated - replacement for LSSetItemAttribute?
On Jun 22, 2014, at 4:01 PM, Trygve Inda wrote: On 22 Jun 2014, at 00:20, Trygve Inda cocoa...@xericdesign.com wrote: FSPathMakeRef is deprecated in 10.8, but LSSetItemAttribute requires an FSRef. Is there a correct way to create an FSRef or perhaps there is a replacement for LSSetItemAttribute to modernize: LSSetItemAttribute(fsRef, kLSRolesAll, kLSItemQuarantineProperties, NULL); Check out the headers for this call in Xcode 6, the comments there mention what call to use instead. Yes they do, but not what parameters to pass to it. Look for kCFURLQuarantinePropertiesKey in CoreFoundation/CFURL.h and NSURLQuarantinePropertiesKey in Foundation/NSURL.h. Cheers, Ken ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
FSPathMakeRef deprecated - replacement for LSSetItemAttribute?
FSPathMakeRef is deprecated in 10.8, but LSSetItemAttribute requires an FSRef. Is there a correct way to create an FSRef or perhaps there is a replacement for LSSetItemAttribute to modernize: LSSetItemAttribute(fsRef, kLSRolesAll, kLSItemQuarantineProperties, NULL); Thoughts? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com