I am currently trying to use the IKImageBrowserView and am struggling
with trying to set some of the view options. The apple docs for this
class state that the following keys are available:

        NSString * const IKImageBrowserBackgroundColorKey;
        NSString * const IKImageBrowserSelectionColorKey;
        NSString * const IKImageBrowserCellsOutlineColorKey;
        NSString * const IKImageBrowserCellsTitleAttributesKey;
        NSString * const
        NSString * const IKImageBrowserCellsSubtitleAttributesKey;

So, in my code, I write something like:


This successfully sets the background of the image browser view to
black. However, if I do:


nothing happens. This is supposed to set the background highlight of a
selected image's title to red.

There is a minor red herring here. Note that the key name I pass in here
ends with "...SelectionColoKeyr" rather than "...SelectionColorKey" -
the "r" in "Color" is put to the end of the string. This is because this
is what the NSString const is defined as - a minor spelling mistake on
apple's part. This can be verified by doing all of this in Objective-C
and XCode. Also, spelling the key "correctly" still does not work in C#.

Also note that I can do 

    Id val =
    NSColor color = val.CastTo<NSColor>();


    Id val2 =
    NSColor color2 = val2.CastTo<NSColor>();

in order to verify that the value for the specified key does change and,
in this example, color2 is indeed red. I also have trouble in setting
the "IKImageBrowserCellsHighlightedTitleAttributesKey" key.

Anyone have any ideas about this?


Reply via email to