Hi,
retainCount is not in anyway useful when debugging - I had many cases
of rc > 5 with the object being gone the next instance. your error
sounds like you loose the image at some point in time. retain it and
use Instruments to see if you leak or over alloc.
Volker
Am 14.03.2009 um 01:23 schrieb Dev:
On Wed, Mar 11, 2009 at 9:33 AM, Scott Ribe <[email protected]
> wrote:
Does your setImage method retain the image?
The object ExternalView is a NSImageView so the setImage is the one of
NSImageView.
The doc says nothing about it, but i added some debug log like this :
NSLog(@"BEFORE : %d", [NewDisplayImage
retainCount]);
[CameraView setImage:NewDisplayImage];
NSLog(@"AFTER : %d", [NewDisplayImage
retainCount]);
2009-03-13 17:17:35.105 xxx[2281:e503] BEFORE : 1
2009-03-13 17:17:35.106 xxx[2281:e503] AFTER : 3
So i guess the image have been retained 2 times ....
--
I.
_______________________________________________
Cocoa-dev mailing list ([email protected])
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/volker_lists%40ecoobs.de
This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]