mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-05 02:13:40 +00:00
This PR adds the support of scaling in CPView. There are two new public methods in CPView : -(void)scaleUnitSquareToSize: and -(void)setScaleSize: -(void)scaleUnitSquareToSize: works exactly as in COCOA, it means if you set a first scale to 0.5 and then 0.5 again, the scaleSize of the view will be 0.25 -(void)setScaleSize: works with the value given. If you set 0.5 after you just seted 0.5 the scaleSize will be 0.5. This method is definitly better in using, specially when using the scaleSize binding with a slider. Test app in Tests/Manual/ScalingTest
15 lines
480 B
Plaintext
15 lines
480 B
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>Main cib file base name</key>
|
|
<string>MainMenu.cib</string>
|
|
<key>CPBundleName</key>
|
|
<string>ScalingTest</string>
|
|
<key>CPBundleVersion</key>
|
|
<string>1.0</string>
|
|
<key>CPHumanReadableCopyright</key>
|
|
<string>Copyright © 2013, Your Company All rights reserved.</string>
|
|
</dict>
|
|
</plist>
|