What is actually set when you choose proportionally down or none, etc in IB
for image scaling in a button or cell? I can't see any property that takes the
type NSImageScaling.
I need to create a button programatically with a specific setting here, and I
can't see what setter I need to call.
Never mind - I found it, it's in NSButtonCell.
--Graham
On 7 Apr 2014, at 2:31 pm, Graham Cox graham@bigpond.com wrote:
What is actually set when you choose proportionally down or none, etc in
IB for image scaling in a button or cell? I can't see any property that takes
the type
(Forgot to hit Reply All a minute ago.)
I notice both NSImageCell and NSImageView implement setImageScaling:. Both
NSSegmentedCell and NSSegmentedControl implement setImageScaling:forSegment:.
NSButtonCell implements setImageScaling:, and as it turns out so does NSButton
-- but the docs don't