Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-06-2009, 05:36 PM   #4 (permalink)
DenVog
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 499
Default

Quote:
Originally Posted by RickMaddy View Post
Here's the simplest rule: If you directly call any of the following methods on an object then you must call release on the object:

alloc/init
retain
copy
mutableCopy
I have a couple simple follow-up questions:
  1. Do you need to release statements when you "initWithFormat", "initWithTitle", or "SoundEngine_Initialize"
  2. How do you decide when to release within a method (e.g. [actionSheet release]; ) vs. doing it in the - (void)dealloc method

Last edited by DenVog; 04-06-2009 at 06:19 PM.
DenVog is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 23,873
Threads: 38,649
Posts: 169,646
Top Poster: smasher (2,547)
Welcome to our newest member, JBTech
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:25 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.