Getting a view's size?
Getting a view's size?
- Subject: Getting a view's size?
- From: patrick <email@hidden>
- Date: Sun, 18 Oct 2009 22:31:41 -0700
Total newbie question here...
I have a window with a custom view filling the entire window. I'm
trying to programatically determine the size of my view, but the
numbers I'm getting back don't make sense to me. As a test, I've set
my window and view to both be 1024 x 768. But in my view, if I output
the size (.width and .height) from [self frame] or [self bounds], I
get 0 x 12400. I wrote a screen saver before, and [self bounds]
returns the screen size, so I'm a little puzzled by this behaviour.
Any help would be greatly appreciated.
Thanks,
Patrick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden