Professional Web Applications Themes

Core Foundation Dict or Bag to bytestream - Mac Programming

Maybe I'm not asking this correctly, but here goes. As Tom Dowdy as recently instructed me on (thx), I plan to use a QT image Desc Extension for storing some metadata in images. This metadata is a little squishy in terms of contenet - if there's A and B then there's a C, but if there's no B then no C. I'm thinking that it would probably be smartest to use a CF collection - maybe a dictionary - as the metadata's "living" storage, and read/write it into the QT Extension. CF is good for that stuff (if the key ...

  1. #1

    Default Core Foundation Dict or Bag to bytestream

    Maybe I'm not asking this correctly, but here goes. As Tom Dowdy as
    recently instructed me on (thx), I plan to use a QT image Desc
    Extension for storing some metadata in images.

    This metadata is a little squishy in terms of contenet - if there's A
    and B then there's a C, but if there's no B then no C. I'm thinking
    that it would probably be smartest to use a CF collection - maybe a
    dictionary - as the metadata's "living" storage, and read/write it into
    the QT Extension. CF is good for that stuff (if the key exists...).

    As my CF knowledge is somewhat lame - lots of URLs, Strings, and Prefs
    - I'm not sure if there's an elegant way to turn a complex collection
    into some generic block of memory, and then back again. My experience
    with CF tells me that it could be something obvious that's not explicit
    in the docs.

    TIA

    Mike
    Mikey Guest

  2. #2

    Default Re: Core Foundation Dict or Bag to bytestream

    In article <190720031047509829%Forgetforget.com>,
    Mikey <Forgetforget.com> wrote:
    > Maybe I'm not asking this correctly, but here goes. As Tom Dowdy as
    > recently instructed me on (thx), I plan to use a QT image Desc
    > Extension for storing some metadata in images.
    >
    > This metadata is a little squishy in terms of contenet - if there's A
    > and B then there's a C, but if there's no B then no C. I'm thinking
    > that it would probably be smartest to use a CF collection - maybe a
    > dictionary - as the metadata's "living" storage, and read/write it into
    > the QT Extension. CF is good for that stuff (if the key exists...).
    >
    > As my CF knowledge is somewhat lame - lots of URLs, Strings, and Prefs
    > - I'm not sure if there's an elegant way to turn a complex collection
    > into some generic block of memory, and then back again. My experience
    > with CF tells me that it could be something obvious that's not explicit
    > in the docs.
    You can convert a CFDictionary to a string with
    CFPropertyListCreateXMLData() (you get an XML file as a UTF-8 string.)
    and convert it back with CFPropertyListCreateFromXMLData().

    See:

    CFPropertyList.h
    David Phillip Oster Guest

Similar Threads

  1. Replies: 2
    Last Post: October 31st, 12:32 AM
  2. Assert failed in \server\core\../core/../TCFLVCacheMgr.h
    By shaharru in forum Macromedia Flash Flashcom
    Replies: 7
    Last Post: January 31st, 05:33 PM
  3. Expected a dict. object error message
    By cguerrero@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 4
    Last Post: May 2nd, 09:39 PM
  4. Error: rangecheck - Offending command: dict
    By Teddie_Krause@adobeforums.com in forum Adobe Indesign Windows
    Replies: 4
    Last Post: June 29th, 03:17 PM
  5. Replies: 6
    Last Post: June 25th, 08:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139