rt.
published

解决方案 »

  1.   

    公布组件在设计期可以编辑的属性,借宝地一用,招个人:http://community.csdn.net/Expert/topic/5010/5010359.xml
      

  2.   

    Published members have the same visibility as public members. The difference is that runtime type information (RTTI) is generated for published members. RTTI allows an application to query the fields and properties of an object dynamically and to locate its methods. RTTI is used to access the values of properties when saving and loading form files, to display properties in the Object Inspector, and to associate specific methods (called event handlers) with specific properties (called events).简单点说,就是为了让Object Inspector能够在设计时显示出来
      

  3.   

    Object Inspector?
    这个published是不是只设计组件才用到?
    正常的普通类要用到published么?
      

  4.   

    published部分声明的属性、字段和方法具有RTTI(运行期类型信息)
    就是在编译后的程序里保留了他们的字符名称等信息
    可以通过TypInfo单元里的函数访问
    对于普通类来说没有必要
      

  5.   

    我接着楼上的老大说:RTTI(运行期类型信息)有点像Java和.NET的反射机制,用它可以实现ORM等等;借宝地一用,招个人:http://community.csdn.net/Expert/topic/5010/5010359.xml