[Mono-osx] [MonoMac] NSAnimatablePropertyContainer Protocol

kjpou kjpou at pt.lu
Sat Jan 15 13:30:40 EST 2011


Miguel

I found my problem.


I did not put the darn colon in there.

It was defined as [Export ("defaultAnimationForKey")] which of course 
does not work.

        [Export ("defaultAnimationForKey")]
         static NSObject DefaultAnimationFor (NSString key)
         {


instead of :

        [Export ("defaultAnimationForKey:")]
         static NSObject DefaultAnimationFor (NSString key)
         {

Thanks again

Kenneth


On 1/15/11 4:22 PM, Miguel de Icaza wrote:
> Hello,
>
>> How do we go about overriding the static method DefaultAnimationFor on
>> NSView.
> This can not be bound, the only solution is that in the class that
> overwrites this, you need to enter in the source code:
>
> [Export ("foobar")]
> static void Foobar ();
>
> Notice that there is no [Static] there, and instead a "static", this
> is because you have to put this in your source code.
>
> This is one of the cases in which our engine is not hiding the
> Objective-C underlying infrastructure.
>
> Miguel
>


More information about the Mono-osx mailing list