Re: Making an object release itself?

2009-01-06 Thread Jean-Daniel Dupas
Le 1 janv. 09 à 20:00, Jim Correia a écrit : On Dec 30, 2008, at 10:28 PM, Jacob Rhoden wrote: Im still learning cocoa, so I have a question about if this is a good idea or a crazy noob mistake. Given the following code can I alter it so that postreader auto releases itself? [...] I'm t

Re: Making an object release itself?

2009-01-05 Thread Jim Correia
On Dec 30, 2008, at 10:28 PM, Jacob Rhoden wrote: Im still learning cocoa, so I have a question about if this is a good idea or a crazy noob mistake. Given the following code can I alter it so that postreader auto releases itself? [...] I'm thinking PostReader class could have a static fun

Re: Making an object release itself?

2008-12-31 Thread Jean-Daniel Dupas
Le 31 déc. 08 à 18:28, Matt Neuburg a écrit : On Wed, 31 Dec 2008 14:28:44 +1100, Jacob Rhoden > said: I'm thinking PostReader class could have a static function that initialises a new PostReader object, tells it to start the work, and then do a [self release] after it has called the callback

Re: Making an object release itself?

2008-12-31 Thread Matt Neuburg
On Wed, 31 Dec 2008 14:28:44 +1100, Jacob Rhoden said: >I'm thinking PostReader class could have a static function that >initialises a new PostReader object, tells it to start the work, and >then do a [self release] after it has called the callback function >'postsRead'; There is certainly nothin

Making an object release itself?

2008-12-30 Thread Jacob Rhoden
Im still learning cocoa, so I have a question about if this is a good idea or a crazy noob mistake. Given the following code can I alter it so that postreader auto releases itself? -(IBAction) fetchThreads:(id) sender { [progress startAnimation:nil]; PostReader* reader = [[PostReader al