Re: Problem assigning image to button under garbage collection
Re: Problem assigning image to button under garbage collection
- Subject: Re: Problem assigning image to button under garbage collection
- From: Bill Bumgarner <email@hidden>
- Date: Thu, 22 Jan 2009 19:53:02 -0800
On Jan 22, 2009, at 7:49 PM, Rick Hoge wrote:
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?
Sounds odd. Please file a bug, attaching the application (binary is
good enough unless you are comfortable attaching the source).
http://bugreporter.apple.com/
thanks,
b.bum
_______________________________________________
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