Re: Reading a legacy file format
Re: Reading a legacy file format
- Subject: Re: Reading a legacy file format
- From: David Sinclair <email@hidden>
- Date: Tue, 8 Apr 2003 10:02:38 -0700
On Monday, Apr 7, 2003, at 18:49 US/Pacific, Scott Anguish wrote:
Actually, there is more or less
CFStringCreateWithPascalString Creates an immutable CFString object
from a Pascal string.
This'll give you a CFString which you can than cast to an NSString
<http://developer.apple.com/techpubs/macosx/CoreFoundation/Reference/
CFStringRef/Reference/function_group_1.html#//apple_ref/c/func/
CFStringCreateWithPascalString>
Ah, thanks for the reminder; I tend to forget about the CoreFoundation
functions.
Any comments on my main question, of what the best way to parse a
legacy data format into an object would be? Using a struct just seems
inelegant... but perhaps better than alternatives like hardcoding
offsets.
--
David Sinclair, Dejal Systems, LLC - email@hidden
Let Dejal Simon keep an eye on your sites for changes or failures!
http://www.dejal.com/simon/
_______________________________________________
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.