• 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
Problem assigning image to button under garbage collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Problem assigning image to button under garbage collection
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: Using the security framework
  • Next by Date: Re: Problem assigning image to button under garbage collection
  • Previous by thread: Re: puzzled about speech synthesis [SOLVED]
  • Next by thread: Re: Problem assigning image to button under garbage collection
  • Index(es):
    • Date
    • Thread