ikimageview

IKImageView zooming controlled by an NSSlider

狂风中的少年 提交于 2019-12-12 01:35:15
问题 What's the best practice for setting zoom factor of an image within IKImageView via NSSlider? I was able to bind a slider either to zoom in OR zoom out action of an IKImageView. Obviously, what I'd rather see is a single slider controlling both those actions. Best, if image is refreshed after each change of the slider (continuously, even if a mouse button is not released yet). 回答1: This demo explains a lot: ImageKitDemo In particular, this snippet is what I was looking for: - (IBAction)

IKImageView redraw problem on image change

大兔子大兔子 提交于 2019-12-11 19:24:04
问题 I have one large IKImageView in my window. The image changes when the user clicks something. When the change happens, the IKImageView first draws the background colour, then draws the image over the top of it, which looks pretty crappy. Is there a way to get it to switch images more smoothly? It also contains garbage when the window loads for a split second until the image loads - is this related? 回答1: Problem solved - stop using IKImageView and never bother with it again because it is poorly

IKImageView and scroll bars

谁说胖子不能爱 提交于 2019-12-09 01:26:37
问题 I'm trying to use the IKImageViewDemo provided by apple (http://developer.apple.com/mac/library/samplecode/IKImageViewDemo/index.html) and I'm trying to add scrollbars to it. I've tried two things: 1) embedding the IKImageView in a ScrollView. This had all sorts of weird effects, like the image was no longer located where it should have been, and the scrollbars seemed to be in a fixed place, no matter how big the window was (So I could shrink the window and lose the scrollbars, even though

Two Finger Drag with IKImageView and NSScrollView in Mountain Lion

瘦欲@ 提交于 2019-12-08 10:38:19
问题 I have a Mac App that's been in the app store for a year or so now. It was first published with target SDK 10.7, Lion. Upon the update to Mountain Lion it no longer works. The application displays large images in an IKImageView which is embedded in an NSScrollView. The purpose of putting it into a scrollview was to get two finger dragging working, rather than the user having to click to drag. Using ScrollViewWorkaround by Nicholas Riley, I was able to use two finger scrolling to show the