is there any way to get the users screen resolution with objective c?

Thanks.

Solution:

```
int width = [[NSScreen mainScreen] frame].size.width;
int height = [[NSScreen mainScreen] frame].size.height;

```