FROM : Thomas Goossens
DATE : Sun Jan 13 11:58:26 2008
Hi Michael,
You don't need to subclass to do this. Just use setValue:forKey with
the option key "IKImageBrowserBackgroundColorKey" :
[_imageBrowser setValue:[NSColor blackColor]
forKey:IKImageBrowserBackgroundColorKey];
other keys are :
extern NSString * const IKImageBrowserBackgroundColorKey; /
*NSColor*/
extern NSString * const IKImageBrowserSelectionColorKey; /*NSColor*/
extern NSString * const IKImageBrowserCellsOutlineColorKey; /
*NSColor*/
extern NSString * const IKImageBrowserCellsTitleAttributesKey; /
*NSDictionary*/
extern NSString * const
IKImageBrowserCellsHighlightedTitleAttributesKey; /*NSDictionary*/
extern NSString * const IKImageBrowserCellsSubtitleAttributesKey; /
*NSDictionary*/
Documentation is here : http://developer.apple.com/graphicsimaging/imagekit/
-- Thomas.
On Jan 13, 2008, at 2:55 AM, Michael Hanna wrote:
> Is there a way to change the background color of an IKImageBrowserView
> to something other than white?
>
> I've tried subclassing it and doing this in -drawRect:
>
> - (void)drawRect:(NSRect)rect {
>
> [super drawRect:rect];
> [[NSColor blackColor] set];
> [NSBezierPath fillRect:rect];
> }
>
> but doesn't seem to make a difference..
>
> Michael
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Sun Jan 13 11:58:26 2008
Hi Michael,
You don't need to subclass to do this. Just use setValue:forKey with
the option key "IKImageBrowserBackgroundColorKey" :
[_imageBrowser setValue:[NSColor blackColor]
forKey:IKImageBrowserBackgroundColorKey];
other keys are :
extern NSString * const IKImageBrowserBackgroundColorKey; /
*NSColor*/
extern NSString * const IKImageBrowserSelectionColorKey; /*NSColor*/
extern NSString * const IKImageBrowserCellsOutlineColorKey; /
*NSColor*/
extern NSString * const IKImageBrowserCellsTitleAttributesKey; /
*NSDictionary*/
extern NSString * const
IKImageBrowserCellsHighlightedTitleAttributesKey; /*NSDictionary*/
extern NSString * const IKImageBrowserCellsSubtitleAttributesKey; /
*NSDictionary*/
Documentation is here : http://developer.apple.com/graphicsimaging/imagekit/
-- Thomas.
On Jan 13, 2008, at 2:55 AM, Michael Hanna wrote:
> Is there a way to change the background color of an IKImageBrowserView
> to something other than white?
>
> I've tried subclassing it and doing this in -drawRect:
>
> - (void)drawRect:(NSRect)rect {
>
> [super drawRect:rect];
> [[NSColor blackColor] set];
> [NSBezierPath fillRect:rect];
> }
>
> but doesn't seem to make a difference..
>
> Michael
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Michael Hanna | Jan 13, 02:55 | |
| Thomas Goossens | Jan 13, 11:58 | |
| Michael Hanna | Jan 13, 20:45 |






Cocoa mail archive

