Re: Scale IKImageBrowserView titles
Re: Scale IKImageBrowserView titles
- Subject: Re: Scale IKImageBrowserView titles
- From: email@hidden
- Date: Sun, 2 Dec 2007 20:05:01 +0100
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 <email@hidden> 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, < email@hidden> 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"];
> >
> >
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden