Questions tagged [ikimageview]
45 questions
6
votes
1 answer
IKImageView Causes App to Crash
I am new to ObjC. Thanks in advance for your help and patience!
I'm trying to add an image to a window in my app (This is OSX, not iOS). I added an Image View (IKImageView) via interface builder to the window. I then added my image to the XCode…

Matthew Jones
- 197
- 1
- 10
5
votes
2 answers
Objective C examples sought
I'm trying to add scrollbars to an IKImageView. Basically at the moment, I need some examples of a program that loads an image into a view, and if the window is too small, sets up scrollbars that do the right things...
Why can I not find these…

Brian Postow
- 11,709
- 17
- 81
- 125
4
votes
0 answers
Zoom a large image in IKImageView
I have an IKImageView in NSScrollView.
Now, I have two problems:
When I show a large image and zoom it, the animation loos very crappy. Is there a way to get it to switch images more smoothly?
When the image is zoomed bigger then the IKImageView,…

f91kdash
- 328
- 2
- 7
3
votes
0 answers
How can I save the image from IKImageView?
Okay... I want to save the visible rectangle of the IKImageView image only.
My problem is that, somehow, if I had an image in portrait mode it will be not saved in the right orientation. I drawing the image with this code:
[sourceImg…

xnz
- 63
- 1
- 5
3
votes
1 answer
IKImageView choppy?
I have an IKImageView, and I'm putting CGImages (That I make out of NSImages) onto it. However, a normal 200DPI 8.5/11 page takes like 3 seconds to come up, appearing in rectangles about 2inches (screen) on a side at a time. This is really annoying.…

Brian Postow
- 11,709
- 17
- 81
- 125
3
votes
1 answer
IKImageView resize is blocky
I am putting an image into an IKImageView, and immediately sizing it to fit. Whenever I do this, the image originally appears at 1-1 size (huge) and then resizes down, which would be fine if the animation was smooth. However, the animation looks ...…

Brian Postow
- 11,709
- 17
- 81
- 125
3
votes
2 answers
Get a CGImageRef from an IKImageView in Swift
I'm trying to get the image associated with a view but Xcode returns me an error. Here is the code:
@IBOutlet var imageView: IKImageView // Link to the image view.
func saveImage() {
var newImage: CGImageRef = imageView.image() // Line with an…

Armand Grillet
- 3,229
- 5
- 30
- 60
3
votes
1 answer
IKImageView and scroll bars
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…

Brian Postow
- 11,709
- 17
- 81
- 125
3
votes
0 answers
IKImageView: how to create an app looks like Preview
I'm working on an apllication that as a view with an IKImageView object inside. I can zoom image in the center position of the image, but I cannot zoom with the mouse position as "anchor point" of the image looks like Preview app.
I have the mouse…

lazza992
- 61
- 3
3
votes
0 answers
IKImageView and scrollToPoint: or scrollToRect:
I'm trying to use IKImageView just because of the number of built-in features it offers. However, it also seems to provide built-in headaches as well. The latest of which is trying to programatically scroll via one of the documented methods:
-…

InfalibleCoinage
- 588
- 13
- 21
2
votes
0 answers
Setting an image on IKImageView not working?
I am working with IKImageView. I have a filepath URL which I am using to add an image to my IKImageView. I have tried with 2 ways :
1. - (void)setImage: (CGImageRef)image imageProperties: (NSDictionary *)metaData;
I am passing a CGImageRef…

Vacca
- 1,219
- 16
- 26
2
votes
0 answers
IKImageView weird Crash in mountain lion
I have an IKImageView and NSSlider. I dragged and dropped a Image into IKImageView and used NSSlider for zooming the Image. I am getting the crash while zoom in and zoom out the image in random.
This is the Message I am getting in console.
ImageIO:…

DevCompany
- 699
- 2
- 9
- 15
1
vote
0 answers
Can I add a CATextLayer to a IKImageView
I'm pretty much a newbie with OS X programming.
I wanted to add a text overlay to an IKImageView, but my text isn't showing up.
In IB, I started with a Custom NSView that I will later embed in a window.
Then I dragged an IKImageView into it so that…

Steve Hwan
- 459
- 1
- 6
- 12
1
vote
1 answer
IKImageView don't show the picture (Cocoa Swift)
I'm trying to show an image from file url in IKImageView, but it only shows an empty frame. My project is in Cocoa Swift 4.2 MacOS on Xcode 10.0.
My code:
class ViewController: NSViewController {
@IBOutlet weak var imagePreView: IKImageView!
…

CaOs433
- 1,137
- 1
- 11
- 15
1
vote
1 answer
Clear an IKImageView?
I have an IKImageView set up to display in my mac application but when you don't give it an image, its starts with like a noisy broken screenshot of my own desktop rather than being empty. How can I simply clear it and have it empty?
Thanks.

Josh Kahane
- 16,765
- 45
- 140
- 253