• 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: All my leaks are gone... but now a memory warning?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: All my leaks are gone... but now a memory warning?!


  • Subject: Re: All my leaks are gone... but now a memory warning?!
  • From: Charles Srstka <email@hidden>
  • Date: Tue, 3 Mar 2009 23:27:04 -0600

On Mar 3, 2009, at 10:27 PM, James Cicenia wrote:

self.spvc = [[StatePickViewController alloc]initWithNibName:@"StatePicker" bundle:nil];

What type of property is spvc? Does it simply assign, or does it retain its value? If the latter, you may end up with the object above getting a retain count of 1 from the init method, and then upping it to 2 by setting the spvc property, thus causing it never to get deallocated since the eventual 'release' operation would simply decrement its retain count back to 1.


Charles
_______________________________________________

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


References: 
 >All my leaks are gone... but now a memory warning?! (From: James Cicenia <email@hidden>)
 >Re: All my leaks are gone... but now a memory warning?! (From: David Duncan <email@hidden>)
 >Re: All my leaks are gone... but now a memory warning?! (From: James Cicenia <email@hidden>)
 >Re: All my leaks are gone... but now a memory warning?! (From: Roland King <email@hidden>)
 >Re: All my leaks are gone... but now a memory warning?! (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: Can't get setDelegate to work on NSMenu attached to NSStatusItem
  • Next by Date: Re: reloading IKImageBrowserView in an IBAction
  • Previous by thread: Re: All my leaks are gone... but now a memory warning?!
  • Next by thread: SOLVED Re: All my leaks are gone... but now a memory warning?!
  • Index(es):
    • Date
    • Thread