Re: NSImage loads garbage every other time?!?
Re: NSImage loads garbage every other time?!?
- Subject: Re: NSImage loads garbage every other time?!?
- From: sebi <email@hidden>
- Date: Sat, 23 Jan 2010 08:36:20 +0100
Never mind, I found out that I had two images with the same name in two different resource folders. Since Xcode doesn't create subfolders within the apps resource folder it copies only one of the images. Thats fine, however it's still interesting why it takes them in turns and why it reports such a strange image dimension for the other image (which is in fact 96x152, so roughly 4.17 times that big)...
Regards,
Sebastian Mecklenburg
On 22.01.2010, at 13:24, sebi wrote:
> Hello,
>
> this is the weirdest thing i saw in a while.
>
> I load an image with
> [NSImage imageNamed:@"someName.png"];
>
> the image is has a size of (159, 256)
>
> Every other time I start the app in the debugger the loaded image reports a size of (23, 36,4812) and contains only garbage of some old image I used before.
> I made a video in case you don't believe me: http://www.youtube.com/watch?v=ASqW3YwXkiw
>
> Can someone explain to me what is going on?
>
> Thanks and regards,
> Sebastian Mecklenburg
_______________________________________________
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