NSImage is not displayed on some computer - macos

Did anyone get the same problem? I load a png image using NSImage initWithCotentsFile and display it in a view using drawInRect:fromRect:operation:fraction:. In a very rare case, some of users using mac os x 10.9.2 complain the image is not displayed.

Related

adding image from NSImageView to Core Data ( Path url to Core Data and Image to Folder )

I am new in os x programming. I am using swift to developing my mac app. In my app I am able to pick and display an image from the folder in my mac to NSImageView , but my goal is to be able to save that picked image to data model. Later i need to transfer that data over wifi to my iOS app that i created.
in data model add attribute with type Binary Data. store data in NSdata format.

How to Display .svg image in XCode 6.3.1

Good Day.
I am making an extension for mac. The RestAPI i am using is providing image url that has .svg format images. I tried loading .svg images but nothing appears. I know mac supports png images and there is a tedious way to render .svg image on mac. Is there any way i can convert .svg to .png upon download using swift?
As far as I know there's no OSX or iOS native support for SVG files. A quick search of GitHub using the search string "Mac SVG" found several libraries that will display SVG files. I suggest you use one of those.

Change background image of a group of Ipad OS X Server

just wondering if there is a way to change the backgroup image of a group of Ipads on OS X Server, using Profile Manager.
I can't see this option
Thanks!

Getting same color output on iOS Simulator versus Quartz drawing in Mac app

I have a PDF that seems to have some internal color profile attached. If I render this in iPhone simulator the colors come out as they look in Photoshop which apparently can parse this color profile. If I render the same PDF on Mac I get the same colors (less bright, muddy) as in Preview and Pixelmator.
Is there some way how I can achieve the same (correct) rendering result on Mac as I was getting in iPhone simulator?
On iOS Simulator, I used CGColorSpaceCreateDeviceRGB with a kCGImageAlphaPremultipliedFirst bitmap context. I also set rendering intent kCGRenderingIntentPerceptual, though I don't know if this makes any difference.
on Mac I tried the same settings, as well as all the different kinds of color spaces, but I'm never able to achieve the same result us in Simulator.
I also tried the two ICC based approaches mentioned here: http://developer.apple.com/library/mac/#qa/qa1396/_index.html
I'm getting desperate. What is different between iOS simulator which gets the colors right and Mac? I thought iOS doesn't do color correction, but Mac does? Right now I am drawing the individual pages with PDFKit. Is there a difference in PDFKit on Mac versus iOS related to color correction that makes it work properly on iOS Simulator, but fails on Mac?
I also took a JPG that was rendered from this PDF in iOS Simulator, put it into a new PDF in Preview and there preview and my Mac rendering yielded exactly the same colors as the input.
It looks to me like iOS Simulator has a magical ability to use a color profile embedded in this PDF which Preview or Quartz on Mac does not.
Please help!
kind regards
Oliver Drobnik
I don't know exactly how simulator works, but I can assure you that both Preview and iOS have very incorrect handling of certain features of PDF files; especially when it comes to color management, transparency, overprint, advanced compression of images etc...
Two tips:
On Mac, open the PDF file in Adobe Reader (free download from Adobe.com). The color you see in Reader should be very close to the actual truth. If your PDF file contains ICC profiles (for objects in the file or in the output intent, meaning for the whole file) it will be used correctly. On iOS, also look at Adobe Reader - it currently is the best (highest quality) display tool on that platform.
Secondly, if you want to know what the simulator or some other tool can or cannot do, have a look at the test patches from the GWG (http://gwg.org/ghentoutputsuite.phtml). These patches were designed to give very easy to interpret results on whether certain tools or printers can handle specific PDF features.
These two steps should at least tell you what works and where it works. That should make it easier to figure out what you need to correct.
Unfortunately this is a confirmed bug in CGPDF on Mac. It manifests itself if you have CMYK as a transparency color space. iOS ignores this correctly, the Mac messes up the colors.

create a .cur file on mac os x

I'm looking for a way to create a .cur file on Mac OS X
I saw that there is a support for .cur file in the NSImage documentation but as far as I tested it I could not produce this file format.
Anny ideas ?
10x
http://www.graphic-converter.net/mac-graphic-converter.htm
Works on macs and converts images into .cur files.

Resources