Scale IKImageBrowserView titles

  • Hi,
    Does anyone know how to change the info space height/cell layout of
    IKImageBrowserView? I'm trying to make the title and subtitle font larger
    than the default 12 pixels (using the code below), but the actual title and
    subtitle frames are not resized accordingly, meaning the two frames overlap
    and the view is garbled. My goal is to have the titles autoscale with the
    window size. Any pointers appreciated.

    NSFont *font = [NSFont fontWithName:@"LucidaGrande-Bold" size:24];

    NSMutableDictionary *dictionary = [imageBrowser valueForKey:
    IKImageBrowserCellsTitleAttributesKey];

    [dictionary setValue:font forKey:@"NSFont"];

    dictionary = [imageBrowser valueForKey:
    IKImageBrowserCellsSubtitleAttributesKey];

    [dictionary setValue:font forKey:@"NSFont"];
  • Thanks. I hope Apple fixes this soon. No way to subclass IKImageBrowserCells
    and draw the frames larger?

    On Dec 1, 2007 6:21 PM, thomas goossens <tgoossenslists...> wrote:

    > Hi,
    > This is a known limitation. For the moment the height of the
    > titles/subtitles are limited to 20px.
    > So for instance with a LucidaGrande-Bold, the maximum size without
    > clipping issue will be 16.
    >
    > -- Thomas
    >
    > On Dec 1, 2007 2:24 PM, < <slasktrattenator...> wrote:
    >
    >> Hi,
    >> Does anyone know how to change the info space height/cell layout of
    >> IKImageBrowserView? I'm trying to make the title and subtitle font
    >> larger
    >> than the default 12 pixels (using the code below), but the actual
    >> title and
    >> subtitle frames are not resized accordingly, meaning the two frames
    >> overlap
    >> and the view is garbled. My goal is to have the titles autoscale with
    >> the
    >> window size. Any pointers appreciated.
    >>
    >> NSFont *font = [NSFont fontWithName:@"LucidaGrande-Bold" size:24];
    >>
    >> NSMutableDictionary *dictionary = [imageBrowser valueForKey:
    >> IKImageBrowserCellsTitleAttributesKey];
    >>
    >> [dictionary setValue:font forKey:@"NSFont"];
    >>
    >> dictionary = [imageBrowser valueForKey:
    >> IKImageBrowserCellsSubtitleAttributesKey];
    >>
    >> [dictionary setValue:font forKey:@"NSFont"];
    >>
    >>
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