Questions tagged [nsimage]

on Mac OS X, an NSImage object is a high-level class for manipulating image data

681 questions
0
votes
1 answer

Collection View not displaying properly

i'm having a collection view , segment control and a arraycontroller. i used setFilterPredicate: method to filter the data based on the segment pressed and displayed in collectionView. what my problem was the filtered data displayed in…
user23790
  • 563
  • 3
  • 21
0
votes
1 answer

How update image from URL in OS X app?

i have some problem. So i have code which update song name and picture from php. Song name work and also updated but picture not work, in php file all work but in my project - no. How make update picture from url after 10 sec for example.…
Evgenii Melnik
  • 69
  • 2
  • 14
0
votes
1 answer

How do I implement dragging of an NSImage inside of an NSView?

I've never dealt much with NSViews so I am at a loss on this. I have a custom class that contains an NSImage ivar. I also have a subclass of NSView that contains an array of instances of my custom class. The NSImage from the custom class gets…
sud0
  • 537
  • 4
  • 18
0
votes
0 answers

“EXC_BAD_ACCESS” while trying to animate a image with an NSArray and NSTimer

I am back again with my pigs (means cochon in French)! :) I would like to created a at simple animated image with an NSTimer and I can't find example of it not with the iphone SDK. after 3 second, the debugger displays : Program received signal: …
0
votes
4 answers

Cocoa API Image Manipulation

Is there any way to do simple image manipulation like adjusting brightness, contrast, exposure, etc. using Cocoa? Something like NSImage?
indragie
  • 18,002
  • 16
  • 95
  • 164
0
votes
2 answers

Objective C - NSImageView, NSImage, NSBitmapImage rep object lifecycle?

I've built a video viewer that is a Safari plugin that displays video from networked devices. The viewer reads bitmap images, prepares them, and sets them on the NSImageView object as follows: NSBitmapImage *bmImg = [[NSBitmapImage alloc]…
snapdev
  • 133
  • 9
0
votes
2 answers

Instance variable NSImage is not drawn

He, since I use my images as instance variables (cause I need to draw them all very often) in this way (in my NSView): @implementation BeatView - (id)initWithFrame:(NSRect)frame{ self = [super initWithFrame:frame]; if (self) { bpm=160; …
fw2601
  • 83
  • 6
0
votes
0 answers

OS X equivalent to resizableImage

Is there an equivalent to the iOS methods -[UIImage resizableImageWithCapInsets:] and -[UIImage resizableImageWithCapInsets:resizingMode:] for NSImage on MacOS X? I've looked at NSImage docs and can't see anything.
Fogmeister
  • 76,236
  • 42
  • 207
  • 306
0
votes
1 answer

NSImage from Texture Atlas

I want to build a LevelEditor and would need the sprites (their images) stored in a Texture Atlas of cocos2d in a NSTableView. Any idea how one could approach that?
Alex
  • 541
  • 5
  • 19
0
votes
2 answers

check the same images after flip cards (objective-C)

I have 4 cards and I can flip my cards, I want to check if my images is the same show 2 images and if it's not back the flip, would you please give me some tutorial or sample code; Thanks in advance! Edit: Here is my images: UIImage *img1 = [UIImage…
user1997934
0
votes
2 answers

Change NSImage Origin

Is it possible to change the origin of an NSImage? If so how would I go about doing this. I have coordinates in regular cartesian system some of them with negative values and I am trying to draw them at the corresponding point in the NSImage but…
stormbard
  • 56
  • 1
  • 9
0
votes
2 answers

cocoa nsimage does not get saved

I'm new to cocoa and programming, sorry if this is something basic. I'm using ARC. I have an NSImageView component, which is controlled by DropZone class. I drag & drop an image into it, but once I try to call in the scalling method I got, it tells…
Rokas
  • 57
  • 1
  • 5
0
votes
1 answer

Image at URL failing to populate NSData

I have an image at a URL which is failing to load into an NSData. When I paste the image URL into a Chrome incognito window, it displays successfully. However, the following fails: photoData = [[NSData alloc] initWithContentsOfURL:[NSURL…
Steven
  • 1,049
  • 2
  • 14
  • 32
0
votes
1 answer

Retrieving NSImage from CoreData - Mac OS X

I'm trying to add images into core data and load it when needed. I'm currently adding the NSImage to the core data as follows: Thumbnail *testEntity = (Thumbnail *)[NSEntityDescription insertNewObjectForEntityForName:@"Thumbnail"…
DesperateLearner
  • 1,115
  • 3
  • 19
  • 45
0
votes
1 answer

convert between NSImage and Leptonica Pix

I'm working on a Cocoa OS X program to clean up scanned pages and would like to use Leptonica's library to do the heavy lifting. I've found some info in this post, this one, and this one. I can certainly get a CGImage from the NSImage and can…
bbrownd
  • 525
  • 1
  • 6
  • 14