• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: about imageReps and images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about imageReps and images


  • Subject: Re: about imageReps and images
  • From: nicolas berloquin <email@hidden>
  • Date: Fri, 17 May 2002 16:18:34 +0200

oops, when I say NSImageRep, please read NSBitmapImageRep (sorry)

On Friday, May 17, 2002, at 03:51 , nicolas berloquin wrote:

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.

  • Prev by Date: Does NSTextView needsDisplay?
  • Next by Date: Re: Hanging heartbeat thread on launch
  • Previous by thread: about imageReps and images
  • Next by thread: OT: PB keyboard navigation
  • Index(es):
    • Date
    • Thread