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: Joel Levin <email@hidden>
- Date: Fri, 13 Nov 2009 11:31:03 -0800
You might try checking NSImage's -isValid after loading it.
- Joel
On Nov 13, 2009, at 11:23 AM, Trygve Inda wrote:
> I use:
>
> imageWithContentsOfFile:@"a.jpg"
>
> And sometime it generates a console message:
>
> Corrupt JPEG data: premature end of data segment
>
> How can I use an observer/exception handler or other notification to detect
> such messages as NSImage accepts this image as valid when it is not.
>
> Something deeper in the OS knows the problem and I'd like to be notified.
>
> Thanks,
>
> Trygve
>
>
> _______________________________________________
>
> 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
_______________________________________________
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