• 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: File Name NSFormatter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File Name NSFormatter?


  • Subject: Re: File Name NSFormatter?
  • From: Marten van Gelderen <email@hidden>
  • Date: Wed, 26 Nov 2003 11:07:16 +0100

Not quite, but I have written a -(NSString *)stringByExpandingStarsInPath; category on NSString analogous to -(NSString *)stringByExpandingTildeInPath;

It accepts a '*' (star) as suffix of a path component and expands that, ultimately using: -(unsigned)completePathIntoString:caseSensitive:matchesIntoArray: filterTypes:

For me it works fine. It expands /Vol*/Ima*/Fil* correctly into /Volume/Image/File if the file exists, otherwise it returns the original string with the stars.

On 26 Nov 2003, at 8:56 AM, Stiphane Sudre wrote:

Hum, after searching the Cocoa documentation, masamam, OmniFramework, Karelia source, I'm a bit surprised there does not seem to be any File Name NSFormatter available. Strange...

Does someone know a link to one?

By a File Name NSFormatter, I'm meaning a NSFormatter subclass which will prevent the use of '/' (on Mac OS X) and other forbidden chars and test the length of the file name.

--
Groeten, Marten
_______________________________________________
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: 
 >File Name NSFormatter? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: New build phase...
  • Next by Date: movie
  • Previous by thread: Re: File Name NSFormatter?
  • Next by thread: movie
  • Index(es):
    • Date
    • Thread