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 04-23-2009, 02:09 PM   #15 (permalink)
eddietr
Registered Member
 
Join Date: Apr 2009
Posts: 536
eddietr is on a distinguished road
Default

Quote:
Originally Posted by johnqh View Post
Your "copy" property of NSMutableArray won't add reference count to the objects in the array.
Actually, it does add to the reference count. It's a shallow copy, but retains are sent to the objects.

Quote:
Their reference count +1 when you add them to the array, but when you removeAllObjects (or the array release), their reference count -1. And then, at the end of autorelease pool, they are dealloc'd.
But then he should get the same behavior regardless of whether he removes all objects or releases the array. But he says he is not getting the same behavior.

Sanniv, can you show us the header file for the class of myImageView? (and please use code tags)
eddietr is offline   Reply With Quote
 

» Advertisements
» Online Users: 438
20 members and 418 guests
apatsufas, bdavid186, CatfishBlues Games, ChrisYates, desbrina, falco1973, gogoman, Lisafleu, LunarMoon, mer10, milanalina, PavelMik, Robemtims, sacha1996, solie, themartist, VinceYuan, Wikiboo, ziocleto, zzeze
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,621
Threads: 94,087
Posts: 402,801
Top Poster: BrianSlick (7,990)
Welcome to our newest member, solie
Powered by vBadvanced CMPS v3.1.0

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