• 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: Simple array controller master-detail binding problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple array controller master-detail binding problem


  • Subject: Re: Simple array controller master-detail binding problem
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 24 Aug 2009 10:17:06 -0700

On Mon, Aug 24, 2009 at 9:58 AM, Leon Starr<email@hidden> wrote:
> Pardon my thinking as I write.... I am guessing I need the retain because
> this thing is being autoreleased.  AND it worked in the command line because
> the pool isn't drained in the middle of my session, but with a GUI it is
> drained on each event loop.  Of course.  Duh.  Thanks guys!

More accurately: you need to retain it because you didn't get it from
an +alloc, -copy, or +new method.  The fact that it's autoreleased and
therefore drained at the end of the event loop is not guaranteed by
the memory management documentation.  :)

But good on ya for finding it and accurately explaining the problem
for yourself.

--Kyle Sluder
_______________________________________________

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: 
 >Re: Simple array controller master-detail binding problem (From: Leon Starr <email@hidden>)
 >Re: Simple array controller master-detail binding problem (From: Kyle Sluder <email@hidden>)
 >Re: Simple array controller master-detail binding problem (From: Leon Starr <email@hidden>)

  • Prev by Date: Re: Simple array controller master-detail binding problem
  • Next by Date: Why would +[initialize] be called twice?
  • Previous by thread: Re: Simple array controller master-detail binding problem
  • Next by thread: authorization services
  • Index(es):
    • Date
    • Thread