Re: How to detect whether a filename points to a text clipping?
Re: How to detect whether a filename points to a text clipping?
- Subject: Re: How to detect whether a filename points to a text clipping?
- From: David Remahl <email@hidden>
- Date: Sun, 30 Mar 2003 10:59:38 +0200
No, that is not sufficient.
Text clippings from the Mac OS 9 era are still recognized. They lack a
file extension, but have a file type and a creator of MACS (if I recall
correctly). Create a text clipping in Mac OS 9 and investigate it using
GetFileInfo (/Developer/Tools).
Curiously, Mac OS X text clippings do _not_ get assigned the same HFS
file type and creator. That has the unfortunate effect that clippings
from Mac OS X appear as plain files in Mac OS 9. If you make sure to
assign the proper T/C in OS X, then the clipping is perfectly usable in
OS 9 as well. I had to figure that out when creating a CD ROM for both
OS 9 and OS X.
/ Rgds, David
On Sunday, March 30, 2003, at 09:57 AM, Alex wrote:
I'd do
if ([[myFilePath pathExtension] isEqualToString:@"textClipping"]){
NSLog(@"do your magic on textClipping file");
} else {
NSLog(@"ignore, it's not a textClipping");
}
Am Samstag, 29.03.03, um 20:42 Uhr (US/Pacific) schrieb Ujwal S.
Sathyam:
Datum: Sa, 29. Mrz 2003 20:42:28 US/Pacific
An: email@hidden
Betreff: How to detect whether a filename points to a text clipping?
Greetings,
Is there any method of finding out whether a file name is pointing to
a text clipping?
Thanks,
_______________________________________________
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.