On Mon, Aug 24, 2009 at 9:58 AM, Leon Starr<leon_st...@modelint.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com