[Mono-bugs] [Bug 551616] New: [btouch] Class type needs ctor: Class(IntPtr)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Oct 30 19:27:42 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=551616
Summary: [btouch] Class type needs ctor: Class(IntPtr)
Classification: Mono
Product: MonoTouch
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Tools
AssignedTo: gnorton at novell.com
ReportedBy: jondick at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-us)
AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9
so when one has an obj-c binding like:
//@property(nonatomic) Class classForInvocation;
[Export ("targetClass")]
Class TargetClass { get; set; }
btouch generates the code:
public virtual Class TargetClass {
[Export ("targetClass")]
get {
if (IsDirectBinding) {
return new Class
(MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle,
selTargetClass.Handle));
} else {
return new Class
(MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle,
selTargetClass.Handle));
}
}
[Export ("setTargetClass:")]
set {
if (value == null)
throw new ArgumentNullException ("value");
if (IsDirectBinding) {
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr
(this.Handle, selSetTargetClass.Handle, value.Handle);
} else {
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr
(this.SuperHandle, selSetTargetClass.Handle, value.Handle);
}
}
}
This does not work as the ObjCRuntime.Messaging methods use return IntPtr's and
the Class ctor expects a string or Type...
Reproducible: Always
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list