• 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
bitmapImageRepForCachingDisplayInRect and focus rings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bitmapImageRepForCachingDisplayInRect and focus rings?


  • Subject: bitmapImageRepForCachingDisplayInRect and focus rings?
  • From: Peter N Lewis <email@hidden>
  • Date: Fri, 5 Jun 2009 11:02:54 +0800

It seems that bitmapImageRepForCachingDisplayInRect does not include the focus ring (I am using bitmapImageRepForCachingDisplayInRect on an NSView that encloses other views including the currently firstResponder NSTextField, so the focus ring is displayed on screen and is well within the bounds of the view passed to bitmapImageRepForCachingDisplayInRect. The NSTextField is included in the resulting image with the text highlighted in blue, so it knows it is the active first responder. But for some reason, the focus ring does not display.

I get the same results with another custom view that draws the focus ring with

			NSSetFocusRingStyle( NSFocusRingOnly );
			[[NSBezierPath bezierPathWithRect:focusRect] fill];

and the view shows up, selected and highlighted, but the focus ring does not show up.

Has anyone got a work around for this. I'm not even sure if this is working as designed or a bug in bitmapImageRepForCachingDisplayInRect (it seems odd that it displays the views selected but somehow avoids the drawn focus ring).

Thanks,
   Peter.


-- Clipboard Switching and Macros with Keyboard Maestro

Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac
<http://www.stairways.com/>           <http://download.stairways.com/>



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: No Title Bar on NSPanel
  • Next by Date: How to animate an object in a circle, but preserve it's orientation
  • Previous by thread: Re: Validating a NSSegmentedControl in a toolbar
  • Next by thread: How to animate an object in a circle, but preserve it's orientation
  • Index(es):
    • Date
    • Thread