• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting a view's size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Getting a view's size?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: OSX have that is equivalent to WaitMessage() Win32 API
  • Next by Date: Re: Getting a view's size?
  • Previous by thread: Re: Core data unable to save Date, Name etc.
  • Next by thread: Re: Getting a view's size?
  • Index(es):
    • Date
    • Thread