Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-06-2009, 02:49 PM   #3 (permalink)
sal_park
Registered Member
 
Join Date: Sep 2009
Posts: 4
sal_park is on a distinguished road
Default

Quote:
Originally Posted by JonnyThunder View Post
Yes, if you alloc an object you are responsible for releasing it. Are you sure it's this which is being deallocated, and not something within this class?
Hi Jonny,

spot on advice - the object being created here:
Code:
self.myUploadRootViewController = 
   [[uploadRootViewController alloc  ] 
       initWithNibName:@"uploadRootViewController" bundle:nil];
   NSLog(@"hash is [%i]",[myUploadRootViewController hash]);
Is not that same object instance that is being destroyed here:
Code:
- (void)dealloc {
	NSLog(@"****** uploadRootViewController being dealloced");
	NSLog(@"hash is [%i]",[self hash]);
    [super dealloc];
}
So given I've only created 1 object, where is the other instance coming from ? is it being created from the info in the nib ?

thanks

sal
sal_park is offline   Reply With Quote
 

» Advertisements
» Online Users: 697
24 members and 673 guests
ADY, Ammad, ayesha25, baja_yu, bignoggins, coreyb, cryophile, dacapo, djbrooks111, GHuebner, givensur, IOOIOIO, jeewan, jochimo, kapps11, kldmurshed, Kryckter, MarkC, mutantskin, Newbie123, nobre84, pipposanta, sacha1996, seecoolguy
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,181
Threads: 93,920
Posts: 402,153
Top Poster: BrianSlick (7,967)
Welcome to our newest member, ayesha25
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:16 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.