Re: Programatically hiding file extensions in Finder

2009-05-04 Thread Dave Fernandes
NSDictionary* attributes = [NSDictionary dictionaryWithObject: [NSNumber numberWithBool:YES] forKey:NSFileExtensionHidden]; [[NSFileManager defaultManager] changeFileAttributes:attributes atPath:path]; On May 4, 2009, at 6:40 PM, Finlay Dobbie wrote: On Fri, May 1, 2009 at 8:30 AM, Er

Re: Programatically hiding file extensions in Finder

2009-05-04 Thread Finlay Dobbie
On Fri, May 1, 2009 at 8:30 AM, Erg Consultant wrote: > Is there a way to do this? I checked all the File Manager docs and would have > thought there would have been something in the cat info to do it, but > apparently not. OSStatus LSSetExtensionHiddenForRef ( const FSRef *inRef, Boolean