Professional Web Applications Themes

OSErr into English message text - Mac Programming

Is there some standard way in Carbon to turn an OSErr number into a message text in English, rather than have to go and look it up? All the best, Roger Pe...

  1. #1

    Default OSErr into English message text

    Is there some standard way in Carbon to turn an OSErr number into a
    message text in English, rather than have to go and look it up?

    All the best,

    Roger Pe
    Roger Guest

  2. #2

    Default Re: OSErr into English message text

    On 27 Jan 2004, Roger Pe wrote:
     
    No.

    Fred

    Frederick Guest

  3. #3

    Default Re: OSErr into English message text

    Frederick Cheung <DUH.ucam.org> wrote in message news:<srcf.societies.cam.ac.uk>... 
    > No.
    >
    > Fred[/ref]

    Oh well. Thanks anyway.

    All the best,

    Roger Pe
    Roger Guest

  4. #4

    Default Re: OSErr into English message text

    co.uk (Roger Pe) wrote in message news:<google.com>... 

    Go to ADC, download the page with all the descriptions. Then do some
    text transformations using bbedit/perl/whatever to make the
    descriptions into some source that creates an in-memory table, with
    the error number and the error string in each row. Then write your
    own function. Worked fine for me.

    -ls
    Lally Guest

  5. #5

    Default Re: OSErr into English message text

    In article <google.com>,
    com (Lally Singh) wrote: 

    You, of course, actually ment that the strings get stored into
    resources/NIBs so that they can be localized.
    Tom Guest

  6. #6

    Default Re: OSErr into English message text

    In article <sf.sbcglobal.net>,
    David Phillip Oster <org> wrote:
     

    Just FYI, you don't really want to mark a resource as 'preload' on Mac
    OS X unless it's one of the very rare resources that really needs to be
    preloaded. For all other resources, using 'preload' increases your
    application's launch time and memory usage and provides no benefits.

    -Eric

    --
    Eric Albert stanford.edu
    http://rescomp.stanford.edu/~ejalbert/
    Eric Guest

  7. #7

    Default Re: OSErr into English message text

    In article <stanford.edu>,
    Eric Albert <stanford.edu> wrote:
     
    >
    > Just FYI, you don't really want to mark a resource as 'preload' on Mac
    > OS X unless it's one of the very rare resources that really needs to be
    > preloaded. For all other resources, using 'preload' increases your
    > application's launch time and memory usage and provides no benefits.
    >
    > -Eric[/ref]

    I'm glad you brought this up.

    1.) I sold the first version of this program in '91, when the
    environment was rather different.

    2.) Since this is error reporting, one of the errors is "Out Of Memory".
    To report that, the resources must already be in RAM, since, when memory
    is low, we don't have the RAM to load more resources. So, yes, you are
    right, it increases launch time because it must be read in at program
    start, but that is unavoidable, because it MUST be read in at program
    start.
    David Guest

Similar Threads

  1. Replies: 1
    Last Post: September 2nd, 09:13 AM
  2. Help! My text isn't in English anymore!
    By Lisa_H.@adobeforums.com in forum Adobe Indesign Windows
    Replies: 3
    Last Post: May 24th, 08:48 PM
  3. Can't get 'English' and 'French' text buttons to work in Flash intro
    By Angel of Night webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 4
    Last Post: August 28th, 12:19 AM
  4. Listener-thread err 25572 oserr=233 system error=233
    By Vineet Mehrotra in forum Informix
    Replies: 2
    Last Post: June 30th, 03:28 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