• 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: HFS Type/Creator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HFS Type/Creator


  • Subject: Re: HFS Type/Creator
  • From: email@hidden
  • Date: Tue, 12 Mar 2002 18:14:33 -0800

How to get file's HFS Creator and Type into NSTextField (what methods?)...I
mean String objects, not Creator Code.

If you already have the strings, just do [textfield setStringValue:value].
If you need to get the strings, use -[NSFileManager fileAttributesAtPath:traverseLink:], and convert the type and creator codes it returns from NSNumbers into strings with a little simple arithmetic (code to do this has been recently posted).
If neither of those is the answer you're looking for, then you need to restate your question a bit more clearly. :->

Ben Haller
Stick Software
_______________________________________________
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.

  • Prev by Date: Re: NSWindowWillCloseNotification
  • Next by Date: Re: NSImage & Multi-Page TIFF?
  • Previous by thread: HFS Type/Creator
  • Next by thread: NSImage & Multi-Page TIFF?
  • Index(es):
    • Date
    • Thread