Giter VIP home page Giter VIP logo

Comments (6)

mdamjanic7 avatar mdamjanic7 commented on July 18, 2024

I've just created a sample project using the latest Xcode under Mavericks, and it seems to work. Just add the two files into the project, the original image, the mask, and this line:

self.maskedImageView.image = [[NSImage imageNamed:@"apple.jpg"] maskUsingMaskImage:[NSImage imageNamed:@"mask2.jpg"]];

Original:
apple

Mask:
mask2

Result:
screen shot 2013-10-24 at 2 52 49 pm

from mdadditions.

mikaelhellqvist avatar mikaelhellqvist commented on July 18, 2024

This is really weird. I must be doing something fundamentally wrong. Here is screen dumps from the code. I used your images and your code...

The mask:
mask

The result:
result

from mdadditions.

mdamjanic7 avatar mdamjanic7 commented on July 18, 2024

I know this is going to sound strange, but try checking the result in the actual application, and not in the Xcode preview.

from mdadditions.

mikaelhellqvist avatar mikaelhellqvist commented on July 18, 2024

Yes, I've done that. This was just for because I wanted to show you. It's probably nothing wrong with your code. I'll investigate further. It's weird though, because it's pretty straight forward.

from mdadditions.

mikaelhellqvist avatar mikaelhellqvist commented on July 18, 2024

Just wanted to confirm that it works. And it does. Just made a new clean project and tested it again and it works fine, so the problem lies in my code.

Thanks for your code and your help! Really appreciate it!

from mdadditions.

mdamjanic7 avatar mdamjanic7 commented on July 18, 2024

Awesome! Glad it worked.

from mdadditions.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.