Comments (6)
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"]];
from mdadditions.
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...
from mdadditions.
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.
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.
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.
Awesome! Glad it worked.
from mdadditions.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdadditions.