Thank you all for your responses. I need to support 10.6.8, so in end I chose
two different approaches for the textview and pdfview.
For the textview, I handle drawing a thin rect around the textview's bounds
when it is first responder. I just handle the change in
-becomeFirstResponder and
On 04/02/2012, at 8:06 PM, Martin Hewitson wrote:
Thank you all for your responses. I need to support 10.6.8, so in end I chose
two different approaches for the textview and pdfview.
For the textview, I handle drawing a thin rect around the textview's bounds
when it is first responder. I
On Feb 4, 2012, at 16:17 , Graham Cox wrote:
The way I've done this is to handle the focus ring in the view's -drawRect
method. You need to focus on the superview so you can draw outside your
frame, but that's not a problem - just do it after you've drawn the rest of
your normal content.
On 05/02/2012, at 12:20 PM, Quincey Morris wrote:
The one issue this doesn't solve is that of making room around the view to
draw the focus ring. If one or more edges of the view are flush with the edge
of the window, the exterior ring looks ugly.
True, though if all edges are flush with
OK, I implemented Graham's solution and it works very well in my situation. The
PDFView in question is not flush with any of the edges of a window, so I don't
need to worry about that here.
Thanks, Graham. Thanks, all!
Martin
On 5, Feb, 2012, at 02:20 AM, Quincey Morris wrote:
On Feb 4,
Oh, and for the app losing focus, you can use: [NSApp isActive] to decide
whether to draw the ring or not. Then in my app delegate I use
-applicationWillResignActive: to trigger a redraw.
Martin
On 5, Feb, 2012, at 02:20 AM, Quincey Morris wrote:
On Feb 4, 2012, at 16:17 , Graham Cox wrote:
On Thu, 2 Feb 2012 09:05:14 +1100, Graham Cox said:
Some views don't actually implement a focus ring, leaving it to you.
This is often the case if the view is typically used for content within
a scrollview. Bear in mind also that the focus ring is drawn outside the
frame of the view, so there has
Hi Martin,
This is just a guess.
Could the NSFocusRingType set in IB be overridden somehow for the PDFView?
You might explicitly test the focusRingType to see what it is once it's been
created.
Sincerely,
Joel
Martin Hewitson wrote:
... I have an app which has an editor on the left side of
Hi Martin,
Some views don't actually implement a focus ring, leaving it to you. This is
often the case if the view is typically used for content within a scrollview.
Bear in mind also that the focus ring is drawn outside the frame of the view,
so there has to be a) space available to draw it,
Dear list,
This is perhaps a silly question, but I can't find the answer anywhere. I have
an app which has an editor on the left side of a splitview and a pdfview on the
right side of the splitview. Then I have a keyboard shortcut to toggle focus
between the editor and the pdfview. The problem
10 matches
Mail list logo