FROM : slasktrattenator
DATE : Sat Dec 01 14:24:11 2007
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"];
DATE : Sat Dec 01 14:24:11 2007
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"];
| Related mails | Author | Date |
|---|---|---|
| slasktrattenator | Dec 1, 14:24 | |
| slasktrattenator | Dec 2, 20:05 |






Cocoa mail archive

