On Fri, Aug 24, 2012, at 11:05 AM, koko wrote:
> I need to set a file's TYPE in the ancient FinderInfo to TEXT as an older
> program needs to use the file and it OS8 Open filters on TYPE. 
> 
> I have looked at a number of FSSpec and FSRef but have had no success.
> 
> If anyone has done this successfully I would sure like to hear about it.

You want -[NSFileManager setAttributes:ofItemAtPath:error:] in
combination with NSFileHFSTypeCode.

--Kyle Sluder
_______________________________________________

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

Reply via email to