以下是技术说明中的委托消息示例:
- (BOol)control:(NSControl*)control textVIEw:(NSTextVIEw*)textVIEw doCommandBySelector:(SEL)commandSelector{ BOol result = NO; if (commandSelector == @selector(insertNewline:)) { // new line action: // always insert a line-break character and don’t cause the receiver to end editing [textVIEw insertNewlineIgnoringFIEldEditor:self]; result = YES; } else if (commandSelector == @selector(insertTab:)) { // tab action: // always insert a tab character and don’t cause the receiver to end editing [textVIEw insertTabIgnoringFIEldEditor:self]; result = YES; } return result;}总结
以上是内存溢出为你收集整理的objective-c – 可可:如何使多行NSTextField?全部内容,希望文章能够帮你解决objective-c – 可可:如何使多行NSTextField?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)