NSXXXTemplate images and NSSegmentedView

  • Hi all,

    How do I create an image that behaves like one of the NSXXXTemplate
    images when used on an NSSegmentedView segment?

    We noticed that on Leopard NSSegmentedViews that have text labels no
    longer display any selection state if the mode is set to "Select Any"
    and the style is "Textured". However if you set one of the
    NXXXXTemplate images from the Library in IB on a segment the image
    highlights in blue when the segment is selected. If you create a
    normal grayscale image yourself you don't get this behaviour. The
    template images seem to contain an NSCoreUIImageRep rather than an
    NSBitmapImageRep.

    Does anyone know how to create an image that behaves like the template images?

    Thanks!

    Dion
  • > How do I create an image that behaves like one of the NSXXXTemplate
    > images when used on an NSSegmentedView segment?

      Have you read the documentation? See -isTemplate and -setTemplate:

    --
    I.S.
  • > Have you read the documentation? See -isTemplate and -setTemplate:

    That did the trick - thanks!

    Dion
previous month november 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    
Go to today