Problem assigning image to button under garbage collection
Problem assigning image to button under garbage collection
- Subject: Problem assigning image to button under garbage collection
- From: Rick Hoge <email@hidden>
- Date: Thu, 22 Jan 2009 22:49:35 -0500
I have a garbage collected app which has been running fine, with no
crashing or leaks and passing nicely using the Xray diagnostic tools.
A problem arose when I added an NSButton to my nib file and assigned
an image to it in Interface Builder (just entering the image name
NSAddTemplate) in the Inspector. As soon as I did this, I started
getting the following kinds of messages in the log:
MyApp (20733,0x100537000) malloc: free_garbage: garbage ptr =
0x8000be360, has non-zero refcount = 1
I tried different approaches to setting the image, such as doing it
programatically (keeping a persistent pointer to the image and
referring to the button via an IBOutlet).
I have googled about such problems, but did not come up with
anything. Is there a known issue with images and buttons under GC?
Thanks in advance for any info,
Rick
(43092.6825)
_______________________________________________
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