I don’t know if this has been fixed yet but it is a bug I have had to work around. My solution was to use a category to fix image loading. It’s probably a bit of a kludge, as I am just rechecking the image size for zero size. I suspect that the issue is either in xib translation (nib2cib) or xib decoding. Can’t tell as the cib format is rather opaque.
@implementation CPImage (CPImageBugFixing)
var CPImageDelegate_imageDidLoad_ = 1 << 1,
CPImageDelegate_imageDidError_ = 1 << 2,
CPImageDelegate_imageDidAbort_ = 1 << 3;
- (void)_imageDidLoad
{
_loadStatus = CPImageLoadStatusCompleted;
// FIXME: IE is wrong on image sizes????
if (!_size || (_size.width < 1 && _size.height < 1))
_size = CGSizeMake(_image.width, _image.height);
[[CPNotificationCenter defaultCenter]
postNotificationName:CPImageDidLoadNotification
object:self];
if (_implementedDelegateMethods & CPImageDelegate_imageDidLoad_)
[_delegate imageDidLoad:self];
}
@end
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business”
> <ZeroWidthImg.png>
>
> --
> You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
objectivej+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/objectivej/8b472727-4c48-4c7c-be5b-97bde4c94130n%40googlegroups.com.
> <ZeroWidthImg.png>