NSView -setBoundsRotation:

  • I need a sideways NSStepper control for an app I'm working on.

    In Tiger, [myStepper setBoundsRotation:90.0] works perfectly. But in
    Leopard, the stepper doesn't change appearance. When clicking on it,
    it behaves like a 90° rotated stepper (I get the proper events when
    clicking on the left side and the right side), but the arrows still
    point up-and-down.

    I also experimented with -setFrameRotation: but this simply
    repositioned the stepper to a different place in Leopard, but it
    wasn't rotated.

    As another experiment, following the experiences of another list
    member, I tried [myStepper setWantsLayer:YES], but this made the
    stepper invisible! Not much of an improvement there. :(

    Does anyone know of any good fixes/kludges? I'll file a radar, too.
  • This is now filed as rdar://5646724, for the concerned Apple readers
    among us.

    On Dec 13, 2007, at 3:51 PM, John Stiles wrote:

    > I need a sideways NSStepper control for an app I'm working on.
    >
    > In Tiger, [myStepper setBoundsRotation:90.0] works perfectly. But
    > in Leopard, the stepper doesn't change appearance. When clicking on
    > it, it behaves like a 90° rotated stepper (I get the proper events
    > when clicking on the left side and the right side), but the arrows
    > still point up-and-down.
    >
    > I also experimented with -setFrameRotation: but this simply
    > repositioned the stepper to a different place in Leopard, but it
    > wasn't rotated.
    >
    > As another experiment, following the experiences of another list
    > member, I tried [myStepper setWantsLayer:YES], but this made the
    > stepper invisible! Not much of an improvement there. :(
    >
    > Does anyone know of any good fixes/kludges? I'll file a radar, too
  • > In Tiger, [myStepper setBoundsRotation:90.0] works perfectly. But
    > in Leopard, the stepper doesn't change appearance.

    Maybe the same problem:

    http://www.cocoabuilder.com/archive/message/cocoa/2007/11/3/192167

    With the solution, "instead of setting the rotation to -90, set it to
    -89.999995".

    ~Martin
  • Yup! That did it.
    Thanks for the clue.
    Fortunately, in this case the stepper doesn't even look blurry… it looks
    just like it should, as far as I can tell.
    At least there is a solution :)

    Martin Wierschin wrote:
    >> In Tiger, [myStepper setBoundsRotation:90.0] works perfectly. But in
    >> Leopard, the stepper doesn't change appearance.
    >
    > Maybe the same problem:
    >
    > http://www.cocoabuilder.com/archive/message/cocoa/2007/11/3/192167
    >
    > With the solution, "instead of setting the rotation to -90, set it to
    > -89.999995".
    >
    > ~Martin
    >
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today