Professional Web Applications Themes

QuickDraw view bug? - Mac Programming

I have a customized QuickDraw view in my nib-based Obj-C Project. It is a background image that covers the entire main window. Intermittently only a small rectangle of the overall image is drawn, as if it is clipped or something. What is drawn is drawn correctly, but the rest of the window's image is never drawn. Forcing updates doesn't correct the problem, but quitting and relaunching often does. It appears to be memory related, because doing something different often restores the full image. I have a window that is drawn initially then removed before the main window is displayed, but ...

  1. #1

    Default QuickDraw view bug?

    I have a customized QuickDraw view in my nib-based Obj-C Project. It
    is a background image that covers the entire main window.
    Intermittently only a small rectangle of the overall image is drawn, as
    if it is clipped or something. What is drawn is drawn correctly, but
    the rest of the window's image is never drawn. Forcing updates doesn't
    correct the problem, but quitting and relaunching often does. It
    appears to be memory related, because doing something different often
    restores the full image.

    I have a window that is drawn initially then removed before the main
    window is displayed, but it's position and size don't correspond to the
    portion being displayed, only being similar in size.

    Thanks for any help!

    Bill Patterson
    Dad Guest

  2. #2

    Default Re: QuickDraw view bug?

    > In <130820031458115074%BillPatiadfw.net> Dad wrote:
    > > I have a customized QuickDraw view in my nib-based Obj-C Project. It
    > > is a background image that covers the entire main window.
    > > Intermittently only a small rectangle of the overall image is drawn,
    > > as if it is clipped or something.
    >
    > How to draw:
    >
    > [url]http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&[/url]
    > selm=20030803142726811-0700%40news.la.sbcglobal.net
    >
    > Oh, and one more thing. Don't pay any attention, in drawRect, to the
    > incoming rect parameter. Just draw your whole frame.
    >
    > m.
    Thanks for the suggestions.

    I was already hard-coding the rectangle to draw. Intermittently it
    works fine, but a subsequent quit and relaunch may draw incorrectly.
    The incorrect location and size is consistent each time it fails to
    draw correctly.

    I am using the source from one of Apple's sample which is a subclass of
    QuickDrawView, so I believe it is subclassed to NSView through that.

    I am not manually calling the drawRect routine anywhere, although it
    certainly looks to me like somehow the active port is wrong or a
    clipping region hasn't been properly set. Note that other objects on
    top of this picture draw correctly at all times.

    Any more suggestions?

    Thanks,

    Bill P
    Dad Guest

Similar Threads

  1. View-View Event Processing
    By Brent Wientjes in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: April 19th, 08:45 PM
  2. HIViews and Quickdraw
    By Eric VERGNAUD in forum Mac Programming
    Replies: 1
    Last Post: August 2nd, 09:54 AM
  3. Standard View vs. Layout View
    By Joe {RoastHorse} in forum Macromedia Dreamweaver
    Replies: 1
    Last Post: July 23rd, 04:03 PM
  4. QuickDraw MacGraw Style
    By shelton webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 6
    Last Post: July 18th, 05:05 PM
  5. Wierd error when going to Design View from HTML view
    By VB Programmer in forum ASP.NET General
    Replies: 1
    Last Post: July 10th, 03:20 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