Kiosk应用程序 - OS X编程 - 多个显示器 [英] Kiosk Applications - OS X programming - Multiple monitors

查看:81
本文介绍了Kiosk应用程序 - OS X编程 - 多个显示器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习了Cocoa + Objective C主要用于iPhone开发,我需要利用这个技能集在几天内为OS X构建一个非常基本的Kiosk应用程序。应用程序基本如下:

I've learnt Cocoa + Objective C primarily for iPhone development, and I need to utilize this skill set to build a very basic kiosk application for OS X in a couple of days. The application is basically as follows :


  • 该设置有两个触摸屏显示器,应用程序必须运行全屏模式。右侧的监视器用作左侧选项列表的详细视图。左侧显示器上有3个选项。

  • The setup has two touch screen monitors, the app must be running full screen mode. The monitor on the right acts as a detail view to a list of options on the left. There are 3 options on the monitor on the left. Picking one will play a movie on the right, Picking two will take you to a quiz, Picking 3 will pull up a Webview.

用户可能不会使用您的电子邮件地址, PC上的任何其他操作。 (我已经开始阅读关于OS X应用程序开发,并且意识到Cocoa为这些类型的应用程序提供了一个信息亭模式)

The user may not use any other operations on the PC. (I've started reading about OS X application development and realized Cocoa provides a kiosk mode for these types of apps)

我的问题简短是


  • 首先,任何帮助如何让我的应用程序在Kiosk模式下运行非常感谢!我有一点时间紧缩(2天得到所有这一切,谈论生活在创业!),所以完全静态内容是好的,我稍微担心如何OS X将处理全屏模式如果一个应用程序已写入较小的窗口大小。 (缩放等)

  • Firstly, any help on how to get my app running in a kiosk mode is much appreciated! I'm under a bit of a time crunch (2 days to get all this done, talk about life in startups!), so completely static content is fine, I'm slightly worried about how OS X will handle full screen mode if an app has been written in a smaller window size. (Scaling etc.)

接下来,假设每个屏幕上有两个窗口,如果用户突然对右侧的内容感到无聊,并触摸左侧的窗口,则第一触摸可能会使窗口聚焦,而第二触摸将作为对按钮的点击。我想避免这种情况!)

Next, assuming there are two windows, one on each screen, how do I deal with focus? If the user suddenly gets bored with content on the right and touches the window on the left, the first touch will probably act to focus the window and the second will act as a click on the button. I'd like to avoid this scenario!)

OS X中的导航模式是什么?我猜这不是简单的 [navigationController pushViewController] ?总之,如何在现有视图上显示新视图?

What are the navigation paradigms in OS X ? I'm guessing it's not as simple as [navigationController pushViewController]? In short, how do I display a new view over an existing view?

感谢,

Teja

Thanks,
Teja

推荐答案


首先,任何帮助如何让我的应用程序在kiosk模式下运行非常感谢!

Firstly, any help on how to get my app running in a kiosk mode is much appreciated!

http://developer.apple.com/library/mac/#technotes/KioskMode/


接下来,假设有两个窗口,每个屏幕上一个,我如何处理焦点?如果用户突然对右侧的内容感到无聊,并触摸左侧的窗口,则第一触摸可能会使窗口聚焦,而第二触摸将作为对按钮的点击。我想避免这种情况!)

Next, assuming there are two windows, one on each screen, how do I deal with focus? If the user suddenly gets bored with content on the right and touches the window on the left, the first touch will probably act to focus the window and the second will act as a click on the button. I'd like to avoid this scenario!)

点击后到达是默认值。如果您有任何自定义视图,请使用 YES 回应 acceptsFirstMouse:以支持点击。

Click-through is the default. If you have any custom views, respond to acceptsFirstMouse: with YES to support click-through in them.


OS X中的导航模式是什么?

What are the navigation paradigms in OS X ?

通常基于窗口或基于源列表。您的应用程式不正常。

Typically either window-based or source-list-based. Your application is atypical.


我猜想它不像< code>一样简单[navigationController pushViewController] ?

同时更简单,更复杂。没有堆栈可以管理;你可以同时有多个窗口。当你需要一个窗口中的所有内容(如在Kiosk模式下的应用程序中)时,这会变得更加复杂,在这种情况下,最终使用选项卡视图(带或不带标签)可以使用户从一个视图切换到另一个视图。 p>

It's simpler and more complex at the same time. There is no stack to manage; you can have multiple windows up at the same time. It gets more complex when you want everything in one window (as in your kiosk-mode app), in which case you end up using tab views (with or without tabs) to enable the user to switch from one view to another.


总之,如何在现有视图上显示新视图?

In short, how do I display a new view over an existing view?

你不会。在同一个超级视图中将一个视图叠加到另一个视图上在AppKit中几乎不支持,并且几乎总是错误。

You don't. Layering one view over another in the same superview is barely supported at all in AppKit, and almost always wrong.

在正常的应用程序中,应该创建多个窗口。在类似您的应用中,您需要使用标签视图。视图控制器可能会帮助你,虽然NSViewControllers是非常不同于UIViewControllers(如我所提到的,没有视图堆栈);他们更像是NSWindowControllers。

In a normal application, you should make multiple windows. In an app like yours, you'll need to use tab views. View controllers may help you here, although NSViewControllers are very different from UIViewControllers (as I mentioned, no view stack); they're more similar to NSWindowControllers.

这篇关于Kiosk应用程序 - OS X编程 - 多个显示器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆