memory-wise manipulation of a subview
does this retain my subview twice?


    - (void)viewDidLoad
    {
    CGRect frame=CGRectMake(0, 0, 320, 460);
    mapButtons*newButtons=[[mapButtons alloc] initWithFrame:frame];
    self.mapButtons=newButtons;
    [newButtons release];
    
    [self.view addSubview:self.mapButtons];
    
    [self.mapButtons addButtons:@"yo"];

once it is added to the view hierarchy with addSubview, does it get an additional retain count beyond that retained by the ivar, self.mapButtons?

i want to be able to manipulate this subview easily, hence the ivar; is this a good way, or is there a better way?

memory-wise manipulation of a subview
===

does this retain my subview twice?


    - (void)viewDidLoad
    {
    CGRect frame=CGRectMake(0, 0, 320, 460);
    mapButtons*newButtons=[[mapButtons alloc] initWithFrame:frame];
    self.mapButtons=newButtons;
    [newButtons release];
    
    [self.view addSubview:self.mapButtons];
    
    [self.mapButtons addButtons:@"yo"];

once it is added to the view hierarchy with addSubview, does it get an additional retain count beyond that retained by the ivar, self.mapButtons?

i want to be able to manipulate this subview easily, hence the ivar; is this a good way, or is there a better way?
