当前位置:网站首页>Cocoa Application-test
Cocoa Application-test
2022-08-04 21:37:00 【彭同学她同桌】
方法
@property (weak) IBOutlet NSTextField *textField;
stringValue获取文本框中的内容
NSString *string = [_textField stringValue];
选项
layout 当字符比文本框长的时候的显示方式
wraps(换行):
会以单词为单位被显示 多出的部分会显示在下一行
如果使用uses Single Line Mode则不会显示在下一行

scrolls(卷轴):
就是会出现半个字母这种情况
truncates(截断)
少的部分用省略号表示 一定只显示在一行里
Line Break 细化截断,换行的方式
Word Wrap按单词换行
Character Wrap 按字母进行换行
还有三个分别是省略头中尾
action 文本什么时候被发送
sent on end eiditing 结束编辑时发送
send on enter only 仅限输入时发送
Behavior
editable 可编辑的
selectable 可选的
Allows
Rich Text 富文本
Undo 打开
Only Roman Characters仅限罗马数字
state
Continuous 输入的时候就会不断的发送action消息 否则只有在输入结束后才会发送action消息
边栏推荐
- SPSS-unary regression practice
- 未知点云结构文件转换需求
- PyTorch Geometric (PyG) 安装教程
- 数电快速入门(五)(编码器的介绍以及通用编码器74LS148和74LS147的介绍)
- How to solve the problem that the alarm information cannot be transmitted after EasyGBS is connected to the latest version of Hikvision camera?
- 打卡第 2 天: urllib简记
- 27. Dimensionality reduction
- PowerCLi 导入License到vCenter 7
- buu web
- PRIMAL: Pathfinding via Reinforcement and Imitation Multi-Agent Learning Code Analysis
猜你喜欢
随机推荐
DSPE-PEG-Aldehyde,DSPE-PEG-CHO,磷脂-聚乙二醇-醛基一种疏水18碳磷脂
Moke, dynamic image resource package display
Common methods of js's new Function()
SPSS-System Clustering Hand Calculation Practice
Spss-一元回归实操
[2022 Hangzhou Electric Multi-School 5 1003 Slipper] Multiple Super Source Points + Shortest Path
NFT宝典:你需要知道NFT的术语和定义
热力学相关的两个定律
moke、动态图片资源打包显示
Exploration and Practice of Database Governance
[Linear Algebra 03] Elimination method display and 4 solutions of AX=b
JdbcTemplate概述和测试
stm32mp157系统移植 | 移植ST官方5.10内核到小熊派开发板
Is the International Project Manager PMP certificate worth taking?
数电快速入门(一)(BCD码和三种基本逻辑运算的介绍)
matlab drawing
STM32MP157A驱动开发 | 01- 板载LED作为系统心跳指示灯
[21 days learning challenge - kernel notes] (2), based in the device tree
SPSS-System Clustering Software Practice
可视化工作流引擎开发OA系统,让企业少花冤枉钱









