• 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
IKImageBrowserView is bonkers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IKImageBrowserView is bonkers


  • Subject: IKImageBrowserView is bonkers
  • From: Randall Meadows <email@hidden>
  • Date: Fri, 6 Jun 2008 16:50:48 -0600

So I have an IKImageBrowserView in my window. It's supplied by a IKImageBrowserViewDataSource object.

The images are captured from a digital camera, which is oriented in a portrait fashion. Once downloaded from the camera, the images are rotated (using jpegtran) to a "normal" orientation, the EXIF is edited to match (using exiftool, since jpegtran leaves the flag alone when it rotates it), and finally an icon is added to the file using this code:

NSImage *preview = [[NSImage alloc] initWithContentsOfFile:filePath]];
[[NSWorkspace sharedWorkspace] setIcon:preview forFile:filePath options:0];


So the image is created from the rotated, EXIF-fixed image file. The image file displays correctly in Preview, Safari, QuickLook, and its Finder preview icon is correct also.

Why come then does the IKImageBrowserView always initially show the image rotated 90° CW, and then a little while later refresh it to be correct? Sorry, not even INITIALLY, its whenever the view updates from the data source. The data source simply returns the full path to the image in the filesystem to display when requested. I've already determined that the image file itself is correct in all ways.

You can see a short (~30 second) QT movie of this strange behavior in action at <http://idisk.mac.com/callipygiani/Public/RotationWTF.mov>. The movie shows several images being captured and added to the view, a couple deleted from the view, and then another captured and added.

Any tips or suggestions as to what is going on would be GREATLY appreciated. I really don't want to have to write my own image browser view...


Thanks! randy_______________________________________________

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


  • Follow-Ups:
    • Re: IKImageBrowserView is bonkers
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Garbage collector vs variable lifetime
  • Next by Date: Re: Using NSSortDescriptor to reverse sort an NSArray containing NSString objects
  • Previous by thread: Re: Garbage collector vs variable lifetime
  • Next by thread: Re: IKImageBrowserView is bonkers
  • Index(es):
    • Date
    • Thread