Ivar ?? where is it defined now
Ivar ?? where is it defined now
- Subject: Ivar ?? where is it defined now
- From: Alan Condit <email@hidden>
- Date: Sat, 29 Jan 2011 13:47:15 -0800
Trying to create an ObjC runtime library for a java application that uses "member" and "field".
The following functions look like they would help with the problem:
id object_getIvar(id object, Ivar ivar)
const char * ivar_getName(Ivar ivar)
In runtime.h it declares:
typedef struct objc_ivar *Ivar;
They are found in the latest "Objective-C Runtime Reference" that I have found. It says that they are declared in Runtime.h.
OBJC_EXPORT id object_getIvar(id obj, Ivar ivar)
AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
OBJC_EXPORT const char *ivar_getName(Ivar v)
AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
However, when I try to compile it generates a message that says objc_ivar deprecated in ObjC 2.
Are this functions still good or is the documentation bad? If the documentation is bad, is there a way to do this, in ObjC2?
Thanks,
Alan
---
Alan Condit
1085 Tierra Ct.
Woodburn, OR 97071
Email -- email@hidden
Home-Office (503) 982-0906
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden