FROM : Tristan Jehan
DATE : Sun Jul 16 22:47:04 2006
I'm trying to capture an NSView+descendants into an NSImage using
something like:
NSBitmapImageRep *bitmap = [view
bitmapImageRepForCachingDisplayInRect:[view bounds]];
[view cacheDisplayInRect:[view bounds] toBitmapImageRep:bitmap];
Problem is: I have the subclass of an NSSlider in that view that does
not get drawn. The NSSlider subclass uses an NSSliderCell subclass in
order to draw its own bar and knob... I believe cacheDisplayInRect
does not call the proper rendering function, but I can't tell... Do I
need to override a function in NSSlider?
Has anyone experienced something like this? Is there a fix?
Thanks,
Tristan
DATE : Sun Jul 16 22:47:04 2006
I'm trying to capture an NSView+descendants into an NSImage using
something like:
NSBitmapImageRep *bitmap = [view
bitmapImageRepForCachingDisplayInRect:[view bounds]];
[view cacheDisplayInRect:[view bounds] toBitmapImageRep:bitmap];
Problem is: I have the subclass of an NSSlider in that view that does
not get drawn. The NSSlider subclass uses an NSSliderCell subclass in
order to draw its own bar and knob... I believe cacheDisplayInRect
does not call the proper rendering function, but I can't tell... Do I
need to override a function in NSSlider?
Has anyone experienced something like this? Is there a fix?
Thanks,
Tristan
| Related mails | Author | Date |
|---|---|---|
| Tristan Jehan | Jul 16, 22:47 | |
| Michael Watson | Jul 16, 22:56 | |
| Tristan Jehan | Jul 17, 23:53 | |
| Michael Watson | Jul 18, 00:40 |






Cocoa mail archive

