I know I\'m not supposed to check or use retainCount, but I\'m trying to wonder if there\'s a way to have an object be removed from an NSMutableArray only after its retain count is 0.
I\'m having a real pain trying to figure out why KVO is retaining all values that are being observed.
I creating set of objects same custom type. All objects have methods showDeleteButton had hideDeleteButton.
I use this code. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
I have NSDate property In .h ... @interface MyAppDelegate : NSObject <UIApplicationDelegate> { ... NSDate *pageStartDate;
being a Cocoa/Obj-C newbie I am going through the \"Cocoa Programming for Mac OS X\" book by Aaron Hillegass and - leaving apart the fact that now we have also the chance to use GC to avoid all this r
I have a NSMutableArray whose pr开发者_如何学Gooperty is (nonatomic, retain), and it\'s getting released for some reason, here\'s the code when I assign it (tableData is the NSMutableArray):
I\'m confused by an occasional crash that I\'m seeing, which, according to the Zombies instrument, is caused by the over-release of some dictionary values. When I look at the object history for one of
I allocated an object like this: PixelInfo *ob1=[[PixelInfo alloc]initWithName:clr :t]; Then the retaincount of object is 1.
Please review my code: @interface ClassA : NSObject { ClassB *objB; } @property (retain) ClassB *objB; @end