Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

[CPImage initWithContentsOfFile:] is broken

#41

If a CPThreePartImage is created from three CPImages that were initialized with initWithContentsOfFile: as opposed to initWithContentsOfFile:size:, the resulting image is often displayed without the first and last image. This is apparently because the size isn't set because the images aren't loaded yet. My expectation would be that CPThreePartImage would load the images in order to resolve the size, rather than fail to display properly. It would be good to note that a file load will occur in the documentation for the class if this change is made, or to note that you must specify the size if the change is not made.

Reported by rippon · September 15th, 2008 @ 11:57 AM

State: resolved
Milestone: 0.5.2
Assigned to: Ross Boucher Ross Boucher

Activity

  1. Ross Boucher
    Ross Boucher
    • Assigned user set to Ross Boucher
    • Title changed from CPThreePartImage only displays middle image sometimes to [CPImage initWithContentsOfFile:] is broken
    • State changed from new to open

    This is a much more widespread problem. Basically, we have an init method that works without the size, unfortunately it doesn't really work unless you know the special voodoo magic to get it to work. We should improve CPImageView to understand the problems involved and do the dance for you.

    September 17th, 2008 @ 12:04 PM

  2. Ross Boucher
    Ross Boucher
    • State changed from open to resolved
    • Milestone set to 0.5.2

    September 17th, 2008 @ 07:51 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.