递归火山软件开发平台

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 火山 源码 类库
查看: 3463|回复: 5
打印 上一主题 下一主题

[视窗] 这对象把我整得魔障了

[复制链接]

16

主题

49

帖子

470

积分

中级会员

Rank: 3Rank: 3

积分
470
跳转到指定楼层
楼主
发表于 2022-7-19 20:11:24 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
Object model overview
The API is exposed through a set of objects. An object has events, methods and properties that you can use to both query and edit the object.

To start customising the software using the API, you should first learn about the structure of the API. This structure is often referred to as the object model. An overview of the object model is given here. Detail of each object, its events, methods and properties can be found in subsequent sections of the online help.

At the top of the object model hierarchy is the Application object. All other objects in the model are located below the Application object, and can be accessed via this top-level object. Detailed knowledge of the object model hierarchy will mean that you can readily traverse through the hierarchy to gain access to a particular type of object.

A large number of objects in the API can only be accessed indirectly. In such cases you must reference the object from another object higher in the object hierarchy. For example, the MacArguments object can only be accessed indirectly. It cannot exist on its own, in fact the MacArguments object exists only as a member of the MacCommand object. Therefore access to the MacArguments object is possible only from the MacCommand object.

Another concept vital to the API is the collection object. A collection object is a special type of object, allowing iteration over an existing set of objects. All collection objects support the Count property and the Item method. Count returns the number of items in the collection while Item returns the indicated item in the collection. Further properties and methods are defined according to requirements for each collection object. An example of a collection object is the MacCommands collection. In addition


上面这是帮助文档 我用有道FY了下 看得魔障了 顶级对象 什么间接访问 不解了
我用易语只看到了18个属性 和8个方法 。用火山也能成功访问 但是帮助文档上面有很多方法和属性等等
想要间接访问低层对象应该怎么访问 求大佬解答下 新手一个 学习火山没几天



920060.jpg (27.15 KB, 下载次数: 30)

920060.jpg

79.jpg (80.1 KB, 下载次数: 29)

79.jpg
回复

使用道具 举报

16

主题

49

帖子

470

积分

中级会员

Rank: 3Rank: 3

积分
470
沙发
 楼主| 发表于 2022-7-19 20:12:39 | 只看该作者
小学文化 英语几乎为0000 大佬们帮帮看下
回复

使用道具 举报

2

主题

10

帖子

662

积分

高级会员

Rank: 4

积分
662
板凳
发表于 2022-7-19 21:09:07 | 只看该作者
读需要对象属性不就行了
回复

使用道具 举报

11

主题

116

帖子

630

积分

高级会员

Rank: 4

积分
630
地板
发表于 2022-7-19 22:29:54 | 只看该作者
抽象方法吧  抽象方法不能直接访问。他没有实现方法,必须有人继承他并实现他,你才可以调用吧
回复

使用道具 举报

16

主题

49

帖子

470

积分

中级会员

Rank: 3Rank: 3

积分
470
5#
 楼主| 发表于 2022-7-20 09:02:33 | 只看该作者
有谁给个例子啊 ,就像访问上面的说明文档的mac那个间接访问对象 ,这玩意要怎么写,顶级对象可以轻松访问 间接对象不知道怎么写了
回复

使用道具 举报

16

主题

49

帖子

470

积分

中级会员

Rank: 3Rank: 3

积分
470
6#
 楼主| 发表于 2022-7-20 09:05:06 来自手机 | 只看该作者
属性下面还有方法 这API
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|递归火山软件开发平台 ( 鄂ICP备18029190号 )

GMT+8, 2024-9-28 21:43 , Processed in 0.093761 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表