如何为 NSMutableParagraphStyle 设置 HeadIndent?
我正在尝试为 OMutableParagraphStyle 设置 Head Indent,但它给了我错误
TextEditor[7143:40b] Finish porting -[OAMutableParagraphStyle setHeadIndent:] at /Users/shokry/OmniGroup/Frameworks/OmniAppKit/OpenStepExtensions。 subproj/OAParagraphStyle.m:387
这是我的代码:
OAMutableParagraphStyle *mutatis = [样式 mutableCopy]; [已修改 setHeadIndent:1.0]; 发生变异=是; [object setParagraphStyle:mutatis fromInspectorSlice:self]; [比照发布];
我的目标是为 github 上提供的 OmniGroup 文本编辑器进行缩进。
I am trying to set the Head Indent for a OAMutableParagraphStyle, but It is giving me and error
TextEditor[7143:40b] Finish porting -[OAMutableParagraphStyle setHeadIndent:] at /Users/shokry/OmniGroup/Frameworks/OmniAppKit/OpenStepExtensions.subproj/OAParagraphStyle.m:387
this is my peace of code :
OAMutableParagraphStyle *mutatis = [style mutableCopy];
[mutatis setHeadIndent:1.0];
didMutate = YES;
[object setParagraphStyle:mutatis fromInspectorSlice:self];
[mutatis release];
My goal is to do Indentation for the OmniGroup Text Editor available on github.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是他们还没有实施。但他们现在已经做到了。看起来很奇怪,他们最初不只是实现这些设置器,因为它们是单行函数。
Well the problem is they hadn't implemented it yet. They have now though. Seems weird that they didn't just implement those setters originally, since they're 1-line functions.