Let me write down the code from the book, for me to explain what I am missing:

```
-(void)drawRect:(CGRect)rect
{
CGRect bounds = self.bounds;
//Figure out the center of the bounds rectangle
CGPoint center;
center.x = bounds.origin.x + bounds.size.width / 2.0;
center.y = bounds.origin.y + bounds.size.height / 2.0;
//The circle will be the largest that will fit in the view
float radius = (MIN(bounds.size.width, bounds.size.height) /2.0);
UIBezierPath *path = [[UIBezierPath alloc] init];
//Add an arc to the path at the center, with radius of radius, from 0 to 2*PI radians (a circle)
[path addArcWithCenter:center
radius:radius
startAngle:0.0
endAngle:M_PI * 2.0
clockwise:YES];
//Draw the line!
[path stroke];
}
```

I thought dot and brackets notation were the same. So I tried to put the bracket notation in the center.x and center.y part of the code, but no way I could succeed. How would you do ?

[EDIT EVEN BEFORE I PUBLISH] I just noticed it’s only a C structure, so there is no bracket problem there, because there will never be any brackets! OK, one item fixed.

Then for the [path stroke] part, it actually says "to the class instance “path”, apply the instance method “stroke”, right ? so in dot notation, it would be path.stroke.

If I write down this in XCode, it says “Property access result unused - getters should not be used for side effects”.

??? What did I do wrong ? What is the damned difference between brackets and dot notation ? Which side effects ?

Thanks for your further answers !