Professional Web Applications Themes

sheets in threads - Mac Programming

Removed by Administrator...

  1. Moderated Post

    Default Re: sheets in threads

    Removed by Administrator
    Jane Guest
    Moderated Post

  2. #2

    Default Re: sheets in threads

    In article <comcast.net>,
    Jane Smith <com> wrote:
     

    As I suggested in my other post, send yourself a carbon event from the secondary
    thread, and show the sheet from its handler. The handler will be invoked on the
    main thread.

    hth

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

  3. #3

    Default Re: sheets in threads

    Jane Smith <com> wrote in message news:<comcast.net>...
    .... 

    The reason that using a timer is a good idea, is so the main Thread
    can decide to
    lower the framerate if resources get maxed out, and still offer a
    normal UI experience

    Instead of using a loop in a separate thread where you draw as many
    frames as possible, provide
    a

    -nextFrame:

    method, and feed it to a NSTimer. This has also the advantage that on
    a really fast machine you'll stick to a maximum framerate, and don't
    waste resources on frames that aren't visible anyway.
    jpa Guest

  4. #4

    Default Re: sheets in threads

    > The reason that using a timer is a good idea, is so the main Thread 


    Who says I'm doing as many draws as possible? :)

    It does a timed draw. It takes .5 seconds to move from one tile to the
    next, so it simply loops through and sees how far along it is. it then
    draws the appropriate frame at that time instant. Nothing needs to worry
    about explicitly lowering anything.

    If it gets bogged down with lots of processing, the loop slows and the
    framerate automatically decreases. if not, it stays fluid.

    No fuss, no muss.

    -Bink.
    Mike Guest

Similar Threads

  1. ASP Functions & Style Sheets
    By ericMorcombe in forum Dreamweaver AppDev
    Replies: 3
    Last Post: April 26th, 12:50 AM
  2. Customizing Contact Sheets?
    By kristin schneider in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 0
    Last Post: September 4th, 05:20 PM
  3. Style Sheets
    By KellyJ webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 3
    Last Post: July 28th, 12:40 AM
  4. Using external style sheets
    By Kevin Spencer in forum ASP.NET General
    Replies: 0
    Last Post: July 9th, 06:03 PM
  5. automation of contact sheets
    By John M D in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 1
    Last Post: June 27th, 09:43 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