Alex Rivera | Logout

Where is the difference between an Window XIB and an View XIB template for iPhone OS > User Interfaces?

Asked 2009-04-08T09:58:14.807
9

Like I understand it, if I would take the View XIB, I had an Content View where I can put UI control elements inside.

But what's an Window then? Isn't that pretty much the same thing?

Edit
Report

1 Answer

1

A window is two views: the frame view (which contains controls that only AppKit has access to, like the zoom, hide, close, and maximize buttons, and the title bar and proxy icon), and the content view, which you control.

If you're designing an area you're going to embed within another view, or hand off to an API that wants a view (for example, to create a panel or sheet), then use a view. If you're designing something to specifically be a window, like a document window, then use a window.

With a window, you have additional abilities to control its appearance and behavior, for example, to make it modal, give it a proxy icon, list it in the Windows menu, order it relative to other windows, etc. that you can't do with a plain view.

How Windows Work

answered 2009-04-08T14:35:04.470

Your Answer