• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem assigning image to button under garbage collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Problem assigning image to button under garbage collection
      • From: Rob Keniger <email@hidden>
References: 
 >Problem assigning image to button under garbage collection (From: Rick Hoge <email@hidden>)

  • Prev by Date: Problem assigning image to button under garbage collection
  • Next by Date: Re: What does errAuthorizationToolEnvironmentError mean?
  • Previous by thread: Problem assigning image to button under garbage collection
  • Next by thread: Re: Problem assigning image to button under garbage collection
  • Index(es):
    • Date
    • Thread