Hello,

I see something weird happening with images displayed in a NSTableView's
column. Until now, the table contents was bound to the arrangedObjects
of a controller, the model of which containing image paths.

BTW, I hadn't realized that until now, but it seems ok to provide paths
(NSStrings) instead of actual NSImages to the table... works out of the
box although I don't really understand why...

Recently, I started to store URL strings (even if only file:// ones) in
the model instead of just paths and the table stopped working. So I
implemented a value transformer which simply does this:

return [[NSURL URLWithString: value] path];

Now, the table works again, but the weird thing is that the displayed
images have a different tint. It's like they have brightness increased,
more white-ish.

I also get the same "effect" for images displayed in a NSCollectionView
somewhere else. The model contains image URL strings, and I also use a
value transformer, but this time, it directly creates NSImage instances
with [NSImage initWithContentsOfURL: ...].


Does anyone have an idea about where this white-ish tint comes from ?


Thank you!
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to