Q About Cocoa & CF Prefs..

Ask a Question related to Mac Programming, Design and Development.

  1. #1

    Default Re: Q About Cocoa & CF Prefs..

    In article <no-EA814A.20172229072003@netnews.upenn.edu>,
    Mark Haase <no@spam.please> wrote:
    > It is my understanding that when you use the core foundation calls to
    > write to an application's preferences, those prefs are not necessarily
    > written out to file immediately, but cached in memory for a bit so that
    > potentially several can be written at once at a later point in time?
    >
    > What happens if your program crashes before the prefs get written out?
    > They're lost I suppose?
    Not only that, if the same preference file is accessed by multiple apps
    simultaneously, the last app to quit overwrites any preferences written
    by the other apps. (According to the tips in the latest issue of
    MacAddict)

    Not only that, but if one app changes the preferences, the other apps
    that are accessing the preferences don't get an event to inform them
    that preferences have changed. (According to CarbonEvents.h)

    The entire API seems to have been written by programmers with room
    temperature IQs.

    To Apple: Get a clue guys! the file system handles robust multiple
    asynchronous access with updating, the preferences system could too.
    David Phillip Oster Guest

  2. Similar Questions and Discussions

    1. Zoom Prefs in ACROBAT 8
      I am running on mac osx 10.4. I know in acrobat 7 you can set a default percentage for files to open. I seem to have the problem opening ads on my...
    2. where is prefs file in MXa?
      Have to delete prefs file in MXa. Where is it and whats is the new name for it now? Bjorn
    3. Crash on launch... bad prefs
      Illustrator CS crashes every time I launch it. I delete the preferences, and it works fine. But the next time I launch Illustrator, it crashes again....
    4. what is it with PS prefs?
      I have also had those thoughts
    5. hiding prefs in in system prefs
      In article <ehhLa.41696$Fy6.12103@sccrnsc03>, sam grey <sgrey@invalid.com> wrote: Remove the individual pref panes from...
  3. #2

    Default Re: Q About Cocoa & CF Prefs..

    In article <no-EA814A.20172229072003@netnews.upenn.edu>, Mark Haase
    <no@spam.please> wrote:
    > It is my understanding that when you use the core foundation calls to
    > write to an application's preferences, those prefs are not necessarily
    > written out to file immediately, but cached in memory for a bit so that
    > potentially several can be written at once at a later point in time?
    Yes, but you can explicitly flush the cache.
    James W. Walker Guest

  4. #3

    Default Re: Q About Cocoa & CF Prefs..

    In article
    <oster-F5C4C7.20193229072003@newssvr23-ext.news.prodigy.com>,
    David Phillip Oster <oster@ieee.org> wrote:
    > > What happens if your program crashes before the prefs get written out?
    > > They're lost I suppose?
    >
    > Not only that, if the same preference file is accessed by multiple apps
    > simultaneously, the last app to quit overwrites any preferences written
    > by the other apps. (According to the tips in the latest issue of
    > MacAddict)
    >
    > Not only that, but if one app changes the preferences, the other apps
    > that are accessing the preferences don't get an event to inform them
    > that preferences have changed. (According to CarbonEvents.h)
    My favorite "feature" is the complete loss of (unmodified) preferences
    in Dock, Finder, ... if the boot disk runs out of swap space :-(((

    Well, according to Files.h PBExchangeFiles appeared in InterfaceLib 7.1,
    so the write-and-swap-if-successful paradigm is only 10+ years old.


    Regards,
    Tom_E
    Thomas Engelmeier Guest

Posting Permissions

  • You may not post new threads
  • You may 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