
Mac
文章平均质量分 74
jasonblog
这个作者很懒,什么都没留下…
展开
-
在Cocoa App中展示自定义的对话框
继上一篇Toolbar的使用,我想在点击工具栏item的时候,下拉一个对话框。 官方文档见此:点击打开链接 通过创建alert: NSAlert *alert = [[[NSAlert alloc] init] autorelease]; [alert addButtonWithTitle:@"OK"]; [alert addButtonWithTitle:@"Cancel"]; [aler原创 2012-12-02 21:09:17 · 5307 阅读 · 0 评论 -
关于NSToolbar的使用
在讨论苹果环境下的开发,不可避免会引用到官方文档:https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Toolbars/Toolbars.html 这里讨论的是使用代码来创建工具栏: - (void)layoutToolbar { NSToolbar *toolbar = [[NSToolbar原创 2012-12-02 20:58:56 · 5283 阅读 · 0 评论