Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How can I call NSColor methods in Cocoa?

I'd like to call/get the method/property "whiteColor" of "NSColor" with the following code:

[NSColor whiteColor]


But I keep getting the following build error:

Unknown receiver 'NSColor'; did you mean 'NSCoder'?


What am I doing wrong? Do I have to declare something first?

Posted on May 3, 2016 1:59 PM

Reply
4 replies

How can I call NSColor methods in Cocoa?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.