Re: Xcode-style split view (header views)
Re: Xcode-style split view (header views)
- Subject: Re: Xcode-style split view (header views)
- From: Thomas Lachand-Robert <email@hidden>
- Date: Wed, 25 Aug 2004 15:55:26 +0200
Le 25 ao{t 04, ` 12:21, Keith Blount a icrit :
Many thanks for your reply, much appreciated. Maybe I
should explain why I want to do this... My app is a
text editor with similarities to Xcode in terms of the
interface. There is an outline view that shows
multiple files, and a text view. The files shown are
part of a wrapper directory that the user just sees as
a single file. So the name of that "file" is what
appears at the top of the document window. If the user
clicks on one of the subfiles that appear in the
outline view, the title of that document should appear
above the text view in which the document will be
displayed. I thought a "header" to the text view would
be an elegant way of doing this, as it works very well
in Xcode - it is unobtrusive and takes up very little
extra space.
In that case I would suggest you change the title of the window itself,
something like "aDocument - part one" for instance. That is what Apple
recommends for documents with multiple windows for instance. (See
NSDocument doc.)
For the header view, did you try to put an NSHeaderView in your window?
You may be right about using a traditional split view,
though - I might rethink this. I am still interested
in how Xcode manages to use a button in the header to
act as the "splitter", but probably won't take this
route after all as a traditional splitter is probably
less annoying.
I think the button in Xcode is just an ordinary button, that replaces
the current content of the window by a split view (and then add another
button just below). What make you think it is different?
Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.