Re: Callback when OS delivers console msg for my process?
Re: Callback when OS delivers console msg for my process?
- Subject: Re: Callback when OS delivers console msg for my process?
- From: Trygve Inda <email@hidden>
- Date: Fri, 13 Nov 2009 20:53:16 +0000
- Thread-topic: Callback when OS delivers console msg for my process?
>> You might try checking NSImage's -isValid after loading it.
>>
>> - Joel
>>
>> On Nov 13, 2009, at 11:23 AM, Trygve Inda wrote:
>
> isValid returns YES
>
> Immediately afterwards calling
>
> [image drawInRect:myRect fromRect:imageRect operation:NSCompositeCopy
> fraction:1.0];
>
> Send this to the console:
>
> <Error>: Corrupt JPEG data: premature end of data segment
>
> The image IS corrupt, but I see no way to detect it.
>
> What a pain.
>
Also...
NSURL* imgURL = [NSURL fileURLWithPath:path];
CGImageSourceRef imgRef;
CGImageSourceStatus imgStatus;
imgRef = CGImageSourceCreateWithURL (imgURL, nil);
CGImageSourceGetStatus (imgRef) returns kCGImageStatusComplete
_______________________________________________
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