lacasanova / shortcutrecorder

Automatically exported from code.google.com/p/shortcutrecorder
0 stars 0 forks source link

Control focus ring clipped #49

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add the Framework and ib plugin to Xcode/IB3
2. Add an SRControl from the IB Palette
3. Build and run the app

What is the expected output? What do you see instead?
I would expect to get a nice SRRecorderControl, with a focus ring that is 
complete, however in my case I get a clipped rectangle that eats the focus ring 
in the corners

What version of the product are you using? On what operating system?
r58 on 10.6.7 with Xcode 3 and IB 3 latest versions, to use the IB Plugin.

Please provide any additional information below.

I initially built my code using XCode 4 and instantiating the control from code 
rather than with the IB plugin that doens't wok in 4, but encountered this 
problem. I thought it was maybe related to me using XCode 4 and wrongly 
initializing the control, but I have the same issue when using the 
implementation in IB.

Many thanks

Original issue reported on code.google.com by superlem...@gmail.com on 16 May 2011 at 11:00

Attachments:

GoogleCodeExporter commented 8 years ago
The SRControl I use is on an NSView that is placed in an holder SlideView which 
I made. This SlideView needs Core Animation to work properly and allow to slide 
between the different views.

In me code, I have:

    [slideView setWantsLayer:YES]; 

in the awakeFromNib method.

If I remove this line, the shortcut recorders displays fine.

Original comment by superlem...@gmail.com on 20 May 2011 at 7:32

GoogleCodeExporter commented 8 years ago
I have exactly the same issue. Is there any fix for this problem?

Original comment by Florian....@googlemail.com on 30 May 2011 at 8:57

GoogleCodeExporter commented 8 years ago
I too have this issue.

One workaround would be to disable toe focus ring, but I found the control and 
cell don't respond appropriately to -[setFocusRingType:NSFocusRingTypeNone]

So I hacked SRRecorderCell.m to handle this now.  Just search for:

        if ( [self showsFirstResponder] )

and replace with

        if ( [self showsFirstResponder] && [controlView focusRingType] != NSFocusRingTypeNone)

Then you just need to call [recorder setFocusRingType:NSFocusRingTypeNone];

Original comment by bumper...@gmail.com on 28 Feb 2013 at 4:26