“嵌入对象”菜单项全部被禁用。如何启用?

发布于 2024-12-29 21:57:23 字数 265 浏览 3 评论 0原文

我正在按照《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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦开始←不甜 2025-01-05 21:57:23

知道了。这里重要的是不要尝试选择 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文