On Mar 11, 2010, at 7:43 PM, Quincey Morris wrote:

> On Mar 11, 2010, at 10:58, Brian Postow wrote:
> 
>> I should be able to just use the clipRect of the superview, right? 
> 
> Well, you have to observe something that produces notifications -- which 
> means the bounds or frame of a view. You're likely not interested in the 
> actual bounds or frame you're being notified about. You just want to be told 
> when something that matters changes. Once you've received a notification, I 
> think you'll simply want to examine the visibleRect of topView. Basically, if 
> I understand correctly, you'll want to position the button view at the top of 
> the visibleRect, and the image view in the rest of the visibleRect, and also 
> handle the edge cases where there isn't enough room to show those subviews.
> 


yes, I think you're right. I think visibleRect is the right thing to look at. 
thanks a lot!

Brian Postow
Senior Software Engineer
Acordex Imaging Systems

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to