• 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
Drawing views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing views


  • Subject: Drawing views
  • From: Livio <email@hidden>
  • Date: Thu, 01 Jun 2006 18:25:44 +0200

I have a view in a normal window and want it to remain in the same
position when resizing the window (i.e. fixed at left-bottom), but the
rect I receive in the view's drawRect method is always at positive
origin (I should have origin.y = -15 but have origin.y = 15).

I subclassed the window's method windowWillResize to send a message to
the view so that it can arrange its frame origin to reflect the new
window size, but still doesn't work.

The fact is that if I use that rect to draw the view, the view will
move, and if I use the view's frame rect to draw it, the view will not
be drawn completely.

How can I do?
Thanks,
liivo.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re Re: beginSheet
  • Next by Date: Re: Click on a URL in WebKit
  • Previous by thread: Re: Re Re: beginSheet
  • Next by thread: Re: Drawing views
  • Index(es):
    • Date
    • Thread