Image scaling property of NSCell/NSButton - where is it?

2014-04-06 Thread Graham Cox
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.

Re: Image scaling property of NSCell/NSButton - where is it?

2014-04-06 Thread Graham Cox
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

Re: Image scaling property of NSCell/NSButton - where is it?

2014-04-06 Thread Andy Lee
(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