[Mono-osx] [Cocoa-sharp] Apple and other assemblies not found?

marc hoffman mh at remobjects.com
Fri Dec 28 14:27:37 EST 2007


Joshua,

> I am trying to compile the simple tutorial found at
> http://code.google.com/p/cocoa-sharp-dev/wiki/SimpleTutorial
> 
> My compiler gives me these
> 
> ApplicationController.cs(4,7): error CS0246: The type or namespace
name `Apple'
> could not be found. Are you missing a using directive or an assembly
reference?
> ApplicationController.cs(4,1): error CS0246: The type or namespace
name
> `Apple.Foundation' could not be found. Are you missing a using
directive or an
> assembly reference?
> ApplicationController.cs(5,7): error CS0246: The type or namespace
name `Apple'
> could not be found. Are you missing a using directive or an assembly
reference?
> ApplicationController.cs(5,1): error CS0246: The type or namespace
name
> `Apple.AppKit' could not be found. Are you missing a using directive
or an
> assembly reference?

> Where is this supposed to reside?  I've installed xcode 2.5 and am on
10.4.11.
> Any help would be very appreciated, thanks!

Unfortunately, this tutorial is WAY outdated. The namespace is now
simply called "Cocoa", also, the NS prefix has been dropped from all
classes, so it's "Button", instead of "NSButton" etc. (ftr, this last is
a change that i personally think was a mistake).

Hth,

marc hoffman

RemObjects Software
The Infrastructure Company
http://www.remobjects.com







More information about the Mono-osx mailing list