> Thanks, in the meantime I realized that I had to change imagePtr from int
> into an NSInteger. Now it works. Do you think it is ok?

Well you found the crash, and the code now looks like it is "ok" in terms of
allocating the right amount of memory. But it's still a confusing mess that
is difficult to follow. Why all the casting back and forth between integers
& pointers??? If you need to store an array of pointers, just do so; don't
cast them to integers and then back again.

-- 
Scott Ribe
scott_r...@killerbytes.com
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to