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

  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. Similar Questions and Discussions

    1. View-View Event Processing
      I am not getting View to View Event processing to work. I have looked through most of the Flex 2 and Flex 3 docs plus several of the Flex books to...
    2. DW Split View - Design View
      When working in DW in Split View, when the user clicks into the Design View window the view automatically updates the view if code view has changed....
    3. HIViews and Quickdraw
      Hi, In order to support brush metal, I am adapting my Carbon Quickdraw framework to support compositing. Everything works fine for standard...
    4. QuickDraw MacGraw Style
      Disclaimer: I would have posted this on PVII Newsgroups, but I can't from work - plus someone here may learn from it. I have tried to duplicate...
    5. Wierd error when going to Design View from HTML view
      When I go from HTML view (in a webform) to Design View I get the following error: Could not open in Design view. Quote values differently inside a...
  3. #2

    Default Re: QuickDraw view bug?

    > In <130820031458115074%BillPat@iadfw.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

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