• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Strange white-ish tint on images in a table olumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange white-ish tint on images in a table olumn


  • Subject: Strange white-ish tint on images in a table olumn
  • From: email@hidden
  • Date: Thu, 08 Sep 2011 22:01:42 +0200
  • Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEW6Qzk0Ew6wkJ717/F5 WWngrq3w3MbPhVyDIA5wNCZDihw/AAACYUlEQVQ4jW2TT2vcMBDFJ4Vi+6heat+Ks3/otYI9N0bd xddNvPkAy5oeTSAVucnQg3SzIWmkb9uZsbybhuok9OPN05uRoLys9Zt9CeedupX76j/g5SilbB7e g/VL0yA46Yd34FVrfSu/tVr/C4oOoNOr9tQl+i34ugNIAB7bRkPULBmo7ykApB/bw72OYE9goSC1 wUDy2NxjLfJfNqCUqutgcRksozvNoGGg+NwO2UAV9f4MAgJns0wIFn5YYiUCIXgEYRRiIqHC8zOw fC5ya3tRNTMIM6CNCxHUgSUIPnHNXvyYwE2Y1iTJe8GghcWNysKAQBQjeYhRLJdN22IpFWoIYyGQ 4UqKcXnHQKnnMAjnRcH3er0q6kPLoK5HF3wvHAdxT8/N6XBkUASg7H3PAZPfaM0eV5mCjBJ7ymeS p+bQomKXYcMhTZH0ObUq6dBiIwGH6rCn1KR+aj5Osj0iMIagjcuAdVsGO2OB5hpZaiCbATAwQDYW vAEEUoIytuuYsSTNjfmFAgRgIWoIUMQDCiRUXY8E65GvpZBuRc8YVAcpl2ILVIgiAnQnf4yY0lyt cFsG1U6nk3Vqvc0dtubPpFCaQoChaNbRcLcRKHx/8baOWl/MinLd6QSwAc6hd573M1CljgFxKj4M 2Qyq8ssEMm+Ds3m4AE3fBlJ6RL4/32qBXzMKcLpWoEISWFQVArzwQN45DjHE6+KnX3eU3Ide5EVu w/VFQQCoUQUFPDLA85IDDtgoITxeWE6Kslx9Jm/vHb3T0RcRVNc/WTG1fBTTpSSUcjNQigx/DD/e Lc5v0x7/AjuoQ/+RysOxAAAAAElFTkSuQmCC
  • Mail-copies-to: never

       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 (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

  • Prev by Date: NSOutlineView and -reloadDataForRowIndexes:columnIndexes:
  • Next by Date: Custom universal types, but outside an application
  • Previous by thread: Re: NSOutlineView and -reloadDataForRowIndexes:columnIndexes:
  • Next by thread: Custom universal types, but outside an application
  • Index(es):
    • Date
    • Thread