• 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: Change type and creator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change type and creator


  • Subject: Re: Change type and creator
  • From: Charles Jolley <email@hidden>
  • Date: Wed, 3 Jul 2002 11:17:34 -0500

Checkout NSHFSFileTypes.h It contains functions to convert specially encoding NSStrings to OSType and reverse. You may have to munge the string a bit, but it should work.

For more info, try using the multi-file find in PB searching frameworks only for your application. I used 'OSType' to get this info.

-C

On Wednesday, July 3, 2002, at 10:53 AM, Quentin Mathi wrote:

Le mercredi 3 juillet 2002, ` 04:34 PM, Philippe Martin a icrit :

At 01:50 +0200 03/07/02, Quentin Mathi wrote:
Can someone give me an example how to change the type and the creator of a file ? I suppose I must use changeFileAttributes:atPath: but I don't understand how to use it.

There are several threads about this archived at mamasam.com. See this message:
<http://cocoa.mamasam.com/MACOSXDEV/2002/04/2/32597.php>

Thanks. ... but my creator and type codes are NSString then I need to convert them to NSNumber and I don't know how to do it. I have tried :
creatorNumber = [NSNumber numberWithUnsignedLong:[creatorString cString]];
but that's not seem to be the right way. I'm a bit rusty with my C.

--
Quentin Mathi
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Change type and creator (From: Quentin Mathé <email@hidden>)

  • Prev by Date: Re: Change type and creator
  • Next by Date: Re: Cocoa stripping resource forks: does Jaguar fix?
  • Previous by thread: Re: Change type and creator
  • Next by thread: Determining user log off
  • Index(es):
    • Date
    • Thread