An NSImageView object displays a single image from an NSImage object in a frame. An editable image view object behaves as an image well and supports copying, pasting, dragging, and using the Delete key to clear its content.
Questions tagged [nsimageview]
248 questions
0
votes
0 answers
Image blurred when container attached to mouse location
Im trying create magnify view but have some problems that can't understand.
I have NSWindow that contains NSImageView. When I set static origin point position to window, and moving only cursor (mouse), all captured fine. But when I set origin point…

Sergey Krasiuk
- 198
- 2
- 9
0
votes
2 answers
NSImageView drawing incorrectly
I created a custom subclass of NSView in order to control 2 NSImageViews. The code for creating the images is as follows:
- (id)initWithFrame:(NSRect)frameRect AndMap:(NSImage *)map AndPlayer:(NSImage *)guyImage
{
self = [super…

Daniel
- 1,079
- 1
- 11
- 25
0
votes
0 answers
Some Border Types in NSImageView Not Appearing
I've looked in previous posts in SO and elsewhere for an answer but no luck. I'm putting images in an NSCollectionView as well as just a single image itself but the only border that seems to work is the grey Bezel border. Other types that are…

JamesH
- 67
- 6
0
votes
1 answer
Cocoa: How to properly hide other views below NSImageView?
I have a view with several subviews (NSButton, NSTextField, NSPopUpButton) and a NSImageView with a spinner icon which should be displayed on top of the other views while data is retrieved from the web.
To display the NSImageView on top I have…

John
- 139
- 1
- 9
0
votes
1 answer
Why image is not scaling to NSImageView
I have this fragment of code in my app
imvPallet.frame = NSRect(x: 5, y: 5, width: 200, height: 150)
imvPallet.imageScaling = .scaleAxesIndependently
self.view.addSubview(imvPallet)
imvPallet.image = NSImage(named: "Pallet")
where imvPallet is…

Dawy
- 770
- 6
- 23
0
votes
1 answer
Create subview on awakeFromNib
I'm trying to create a NSImageView programmatically as a subview of another NSImageView when awakeFromNib is called.
My code is as follows (Fader is defined in MyImageView.h):
@implementation MyImageView
- (void)awakeFromNib {
Fader = [NSImageView…

Jaliborc
- 353
- 5
- 16
0
votes
0 answers
NSImageView on top prevent NSDataPicker from getting focus
MacOs app allow user to manage content on the iOs application, so I am trying to allow user to edit content in "natural invironment".
So I have a scrollview with elements and I have a NSImageView with iPhone frame on top of it(transparent in the…

andrii
- 727
- 3
- 9
- 21
0
votes
1 answer
Cocoa Image Gallery Window
I have a HUD panel in an app and I want to be able to take a set of images and show each image on the panel for a few seconds before displaying the next image. I'm very new to Cocoa and am having trouble implementing this so some pointers would be…

Craig Koster
- 496
- 5
- 15
0
votes
0 answers
Xcode 10 image slicing not working as expected
After updating to Xcode 10 my sliced images stopped working in macOS projects. It is working fine in iOS projects.
Here is an example of the image slice:
And here is how it looks at IB:
I have tried many different settings and slicing options.
I…

J.Doe
- 326
- 2
- 14
0
votes
1 answer
macOS Mojave - NSReadPixel is not working
I have subclassed NSImageView to override mouseDown method to get the colour of clicked point and so far it was working fine on all OS versions (up to 10.13.x) but on 10.14 this doesn't seems to be working and I am always getting null colour when…

M P
- 352
- 3
- 14
0
votes
1 answer
Determine if NSImageView is highlighted
I have a view with multiple NSImageViews. How can I determine which NSImageView is highlighted when selected by the user? The isHighlighted property is always the same.
user4991637
0
votes
1 answer
Display gif inside NSImageView - Swift 3 - Mac
I am trying to load and display a gif file inside a NSImageView but nothing appears when I run the project.
I have try to link the gif file with NSImageView using url, data or named, but it does not work.
func applicationDidFinishLaunching(_…

Fredo
- 153
- 2
- 13
0
votes
1 answer
NSImageView update delayed when set from an NSTimer
I'm working on a project in Swift that requires strict control of image display and removal timings in certain sections. I'm finding that when I set the image property of an NSImageView from inside a block that's fired by a Timer, the actual display…

Delvin Anaris
- 1
- 2
0
votes
1 answer
finding the coordinates of an NSImageView
Im not too used to cocoa yet, so please bear with me
I am writing a game for mac in Objective-C on cocoa, and I have one problem:
I have two NSImageViews, and i need to set it up so that if I move one, the other one follows it ON THE Y AXIS ONLY.…

Conor Taylor
- 2,998
- 7
- 37
- 69
0
votes
0 answers
NSimageView.image won't display an image in swift
I have an issue with a OSX application. I want it to display an image, so I create an NSImageView object, and linked it to my view controller. I then ceate a function that should load an image from a selected folder. I get the image url correctly an…

Remi
- 11
- 2