Re: File Name NSFormatter?
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.