[Cocoa-sharp] objc_msgSend
Nicholas Hollett
niax.hollett at gmail.com
Mon Dec 4 17:27:47 EST 2006
Hey,
I'm making some modifications to 0.93 to add the Hidden parameter to
NSView but can't figure out how to send a BOOL parameter, using a
straight up bool it gives an exception, and if i try a Cocoa.String
it will flick the hidden to false, regardless to what i set it to.
Code added thus far and confirmed as working:
public bool Hidden{
get {
return (bool)ObjCMessaging.objc_msgSend
(NativeObject, "isHidden", typeof(bool));
}
}
Many Thanks,
Niax
More information about the Cocoa-sharp
mailing list