On 2 Mar '08, at 4:03 PM, Steve Weller wrote:

The subview bounds are set correctly at the start, but if I make the subview's frame larger, the bounds are scaled larger too. I thought from this in the NSView docs that the subview's bounds would stay fixed:

Nope. Changing a view's frame does not change the scale factor of the contents. 99% of the time that's what you want — resizing a button shouldn't magnify its text! For the case where you do want the view's contents to zoom as you resize it, you'll need to recompute the bounds appropriately when the view's frame changes.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [EMAIL PROTECTED]

Reply via email to