• 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: Reading a legacy file format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Reading a legacy file format
      • From: Scott Anguish <email@hidden>
References: 
 >Re: Reading a legacy file format (From: Scott Anguish <email@hidden>)

  • Prev by Date: Inserting Graphics into NSTextView
  • Next by Date: Re: Modify the background color of a row in NSTableView with Images and Buttons
  • Previous by thread: Re: Reading a legacy file format
  • Next by thread: Re: Reading a legacy file format
  • Index(es):
    • Date
    • Thread