• 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
NSView to NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView to NSImage


  • Subject: NSView to NSImage
  • From: Tristan Jehan <email@hidden>
  • Date: Sun, 16 Jul 2006 16:47:04 -0400

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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSView to NSImage
      • From: Michael Watson <email@hidden>
  • Prev by Date: Re: NSTreeOutline display glitches; how to troubleshoot?
  • Next by Date: Re: NSDatePicker leaking in graphical mode?
  • Previous by thread: Re: NSTableView clickedRow != array Position
  • Next by thread: Re: NSView to NSImage
  • Index(es):
    • Date
    • Thread