Assume I have a interface like: @interface it:NSObject { NSString* string; } @end @implement it -(id)init { if(self = [super init]){
Are the two me开发者_开发问答thods - (id) myFirstMethod { NSObject* anObject = [[NSObject alloc] init];
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
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
I need few clarification in iPhone memory management. Here is an example for setters; 1). -(void)setValue:(NSString*)input{
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:
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
I have CGLayers cached in an NSMutableDictionary where I use them as follows: - (CGLayerRef)getLayerForCacheKey:(CacheKey)cacheKey andProperty:(id)property {
I am learning memory management, but I don\'t really understand why I should implement my attribute getter like this:
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