“嵌入对象”菜单项全部被禁用。如何启用?
我正在按照《Mac OS X 的 Cocoa 编程,第三版》一书中创建 ScrollView 的说明进行操作。我正在使用 Xcode 3.2.3。
我已经创建了一个视图,在其中绘制了形状和线条。
下一个任务是将其转换为 NSScrollView,根据本书,这应该是选择现有视图并选择布局 -> 布局的简单情况。嵌入对象 ->滚动视图。
然而,无论我选择什么对象,“嵌入对象”菜单中的项目都被禁用。
如何启用嵌入对象 ->滚动查看项目?
I'm following the instructions for creating a ScrollView in the book 'Cocoa Programming for Mac OS X, 3rd Edition'. I'm using Xcode 3.2.3.
I've already created a view, into which I've drawn shapes and lines.
The next task is to convert this to a NSScrollView, which according to the book should be a simple case of selecting the existing view and choosing Layout -> Embed Objects In -> Scroll View.
However whatever object I select, the items in the 'Embed Objects In' menu are all disabled.
How can I enable the Embed Objects In -> Scroll View item?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
知道了。这里重要的是不要尝试选择 MainMenu.xib 窗口中的视图。选择实际文档窗口中的视图并确保调整大小手柄可见。有点繁琐,但是一旦选择了正确的对象,嵌入对象菜单项就会启用。
Got it. The important thing here is not to try selecting the view in the MainMenu.xib window. Select the view in the actual document window and make sure the resize handles are visible. A little fiddly, but once you get the right object selected, then the embed objects menu items become enabled.