about imageReps and images
about imageReps and images
- Subject: about imageReps and images
- From: nicolas berloquin <email@hidden>
- Date: Fri, 17 May 2002 15:51:37 +0200
Hi !
I'm stumbling onto a probleme here, and I don't know if what happens is
normal or not.
I create an NSImageRep, whose bitmap I store as a pointer.
I then create an NSImage and set its imageRep with the previously
created imagerep.
I then setImage of this NSImage on two different NSImageViews.
One of them is simply a subview of a window (actually, inside a
scrollview).
the second one is inside a view which is inside a matrix custom cell.
(btw the
cell used to draw fine before I added this code).
now, I progressively fill the bitmap with a decoded jpeg image. That
works fine. Each
time I call display on the window's NSImageView, I see my jpeg appearing
line by line.
but whatever I try to draw the NSImageView that's in the matrix, I only
see a black image
(ie it never gets updated).
I tried calling the matrix' enclosingscrollview's display, or drawcell
etc, and I can see my
cell draw itself, but without being updated with the new content.
btw I set the view that's the superview of my NSImageView as
setNeedsDisplay: YES.
so my question is:
- is there a caching mechanism in the matrix that displays the same
thing even though
I call drawcell and needsdisplay ?
- the two NSImageViews should have the same NSImage inside them, with
the same
NSImageRep inside, or is this a wrong assumption ?
any suggestions ? thanks !!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.