autorelease
A simple problem in objective c, about memory leak
Assume I have a interface like: @interface it:NSObject { NSString* string; } @end @implement it -(id)init { if(self = [super init]){[详细]
2023-02-16 04:27 分类:问答Objective-C and autorelease on return
Are the two me开发者_开发问答thods - (id) myFirstMethod { NSObject* anObject = [[NSObject alloc] init];[详细]
2023-02-15 21:46 分类:问答Memory leak warning on release but not on autorelease
I have a problem with memory leak warning when releasing an object after returning it. I read a few posts about the similar subject but in those posts problem with releasing was that in the end \"they[详细]
2023-02-15 10:01 分类:问答Why isn’t my autoreleased object getting released?
I am debugging a weird memory management error and I can’t figure it out. I noticed that some of my objects are staying in memory longer than expected. I checked all my memory management and finally[详细]
2023-02-13 06:44 分类:问答Need clarification in iPhone memory management
I need few clarification in iPhone memory management. Here is an example for setters; 1). -(void)setValue:(NSString*)input{[详细]
2023-02-11 03:42 分类:问答iPhone - Objective-C - Memory Leak with initWithArray
I am using the code below to set my two NSArray ivars: The issue is, I keep getting a memory leak on the following lines:[详细]
2023-02-10 17:35 分类:问答iPhone - Objective-C Memory Leak with SBJsonParser
I keep getting the following memory leak using the \"Leaks\" tool in Xcode. As this is a library, I\'m just wondering what would be the best way to fix such a leak. Any help would be greatly appreciat[详细]
2023-02-10 09:01 分类:问答How do I autorelease a CGLayer?
I have CGLayers cached in an NSMutableDictionary where I use them as follows: - (CGLayerRef)getLayerForCacheKey:(CacheKey)cacheKey andProperty:(id)property {[详细]
2023-02-10 07:02 分类:问答retain and autorelease in a getter method
I am learning memory management, but I don\'t really understand why I should implement my attribute getter like this:[详细]
2023-02-09 23:36 分类:问答When does retain count for an autoreleased object decrement?
If I have an autoreleased object, when does its retain count (i.e. the value returned when I call the method retainCount on it) decrement? I had figured it to be when the scope of the method the objec[详细]
2023-02-09 08:53 分类:问答