#41 ✓resolved

[CPImage initWithContentsOfFile:] is broken

Reported by rippon | September 15th, 2008 @ 11:57 AM | in 0.5.2

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.

Comments and changes to this ticket

  • Ross Boucher

    Ross Boucher September 17th, 2008 @ 12:04 PM

    • 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.

  • Ross Boucher

    Ross Boucher September 17th, 2008 @ 07:51 PM

    • State changed from “open” to “resolved”
    • Milestone set to 0.5.2

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

People watching this ticket

Referenced by