Hi all,
I just downloaded the latest MacOSlib, double-clicked on macoslib.rbvcp, and hit run. It starts compiling and then throws a wobble:
[code]Set
#if TargetCocoa
declare sub setAnimationBehavior lib CocoaLib selector “setAnimationBehavior:” (obj_id as Ptr, behavior as NSWindowAnimationBehavior)
setAnimationBehavior self, value // <- ObjC error
#else
#pragma unused value
#endif
End Set[/code]
Any idea where I’m going wrong?
Thanks
Markus
Are you by chance running Snow Leopard?
It is marked in the code: “ObjC error”
Eli_Ott
(Eli Ott)
6
Yes, I understand, but what is the ObjC error?
That’s the problem; setAnimationBehavior: wasn’t added until 10.7. I’ve created an issue for this at Issues · macoslib/macoslib · GitHub .
It should be an ObjCException with the message being something about the object not responding to the selector setAnimationBehavior:
.
I have fixed the problem in the current macoslib version.