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
1 answer
Cocoa - subviews not showing after being added
Im trying to add some subviews to a container (container is a NSView derived class, and subviews are some NSImageView objects). Since the code is messy right now due to trying different stuff, i wont paste it all for the time being.
This is the part…

eemerge
- 75
- 2
- 9
0
votes
3 answers
Setting the NSImage of a NSImageView from a NSURL
Okay, so I'm a newbie trying to write a practice app where you click a button, an NSOpenPanel appears, you select an image file, and the image gets displayed in an NSImageView.
I've got the open panel working okay, and it returns an NSArray of…

TD219
- 1
- 3
0
votes
2 answers
Changing the value of an NSImageView when it is edited via the control
I have an NSImageView which is set to editable. I would like to be able to revert to a default image when the user deletes the image. I've tried changing the value that the NSImageView is bound to in the setter, but the getter is not called…

Septih
- 1,436
- 17
- 40
0
votes
1 answer
Drawing in a view: Why can't I get my NSImage to display in my NSImageView?
I created an NSImageView using code:
@implementation IconView
-(void)awakeFromNib {
[self setImageRect:NSMakeRect(36, 66, 144, 144)];
[self setImageView:[[NSImageView alloc] initWithFrame:[self imageRect]]];
[self addSubview:[self…

7stud
- 46,922
- 14
- 101
- 127
0
votes
1 answer
Change Background Color of Full Screen Application- Xcode
Good Afternoon helpful people!
I'm building a mac app that displays images. The app will be in fullscreen mode 100% of the time it is running.
My issue is that the images I am displaying do not fill the entire screen, therefore, showing a grayish…

justColbs
- 1,504
- 2
- 18
- 28
0
votes
2 answers
NSTimer starts, stops, and continues after window closes
So here is what's happening in human logic (but not suppose to be).
My View controller loads
retrieves my images from Parse successfully
sets the first retrieved image equal to my UIImageView image
starts my timer of 5 Seconds (I think)
And then…

justColbs
- 1,504
- 2
- 18
- 28
0
votes
1 answer
Obj-C: Why won't my image display in NSImageView?
I have a document window with an empty NSImageView, and I have an outlet connect to this called *imageView. I also have the property: NSImage *image.
The NSImageView fills almost the entire window.
In windowControllerDidLoadNib: I call the following…

user3574603
- 3,364
- 3
- 24
- 59
0
votes
1 answer
NSImageView drag and drop still works outside window boundaries
I have an NSImageView with drag and drop connected as follows:
-(NSDragOperation)draggingEntered:(id)sender{
if ((NSDragOperationGeneric & [sender draggingSourceOperationMask])
== NSDragOperationGeneric) {
…

Mozzak
- 201
- 3
- 16
0
votes
1 answer
Swift cocoa Osx application imageviews
I am currently working on a swift cocoa osx project. In my project I have 31 NSimageViews named space0, space1, space2, through space30. Each image view has 3 possible images, a green image, a blue image, and a white image. What would be the most…
user4064541
0
votes
1 answer
iOS load resized image without losing quality
I am trying to load a scaled down version of an image without loading original sized image into memory. To reach this goal I was using ImageIO framework. However in this case I face unacceptable loss of quality.
This way I can re-size my image,…

Harazi
- 122
- 1
- 10
0
votes
1 answer
Alternative method for canDrawSubviewsIntoLayer prior to OSX 10.9
I needed to implement the following code in my image view to make a gif properly animate:
self.homeView.radarImageView.animates = YES;
self.homeView.radarImageView.canDrawSubviewsIntoLayer = YES;
self.homeView.radarImageView.image =…

wigging
- 8,492
- 12
- 75
- 117
0
votes
1 answer
Changing NSImageView over time interval
I am trying to make a simple craps game.
I have done a fair amount of C programming in the past year and am trying to convert over to GUI and Obj C.
I have a button and two image cells inside my window. The images are seen as outputs (dye, dye2)…

fingaz
- 241
- 1
- 6
0
votes
4 answers
NSImageView setImage won't set image
I am trying to set image for an NSImageView instance object in a Cocoa project. My code looks like this:
itemTableCellView * xx = [tableView makeViewWithIdentifier:@"MainCell" owner:self];
xx.label.stringValue = [tempCi simpleTxt];
xx.img…

Marci-man
- 2,113
- 3
- 28
- 76
0
votes
1 answer
NSImage is always being scaled and looks bad
I want to create an NSImage of an NSScrollView object, so I can use the flat graphic for animation purposes.
When I render my scrollview object into a graphic and add it back to my window, it works but looks really bad like it's been scaled to 99%…

beely
- 83
- 6
0
votes
2 answers
Reduced image size in NSScrollView
I'm trying to load an image into my NSImageView/NSScrollView and display it at actual size, but the image mysteriously ends up getting displayed at about half-size. I thought at first it might be being reduced to fit into some kind of constraints of…

Bender
- 357
- 5
- 15