#1346 ✓resolved
fnurl

Trying to create a new layout (both thread and correspondance)

Reported by fnurl | December 9th, 2015 @ 05:02 PM

I am trying create a Thread & Correspondence layout based on the Correspondence layout. I wantan extra MmMessageOutlineView above the one showing the Correspondence listing to show messages filtered by thread instead. I have succeeded in doing this, but I can't figure out how to add labels above both of them. When I do (with them inside a MmSplitView), the labels are too large.

? I have attached my "Thread & Correspondence" layout to this ticket.

Also, just out of curiosity, while testing I could not get two MmMessageOutlineViews under each other in a MmBoxView (as is used in the Correspondence layout), but when I switched to a MmSplitView it was OK. What is the difference between MmSplitView and MmBoxView? My guess is that is has something to do with how components inside the view are laid out?

Another viewerType I could not understand was the MmSeparatorView, could you tell me what it does?

Comments and changes to this ticket

  • benny

    benny December 10th, 2015 @ 09:04 AM

    For labels you should use MmBoxView. Maybe that helps, but note that the layout system is probably not 100% robust. Some layouts are tricky or impossible to create.

    You should use MmSplitView for combining resizable views and MmBoxView when combining a fixed size view with something else.

    The MmSeparatorView is simply a line to visually separate two views. Most often used between views when using MmBoxView.

    See if that helps and then send me another layout if it still doesn't work.

  • fnurl

    fnurl December 10th, 2015 @ 02:09 PM

    Thanks for the reply. I managed to fix it, had some syntax error going on ;)

    Anyway, I used the following for selections:

    1. The Thread outline uses the Main outline as source
    2. The Correspondence outline uses the Thread outline as source and selection source.
    3. The message viewer uses the Correspondence outline as source.

    I really think you've done a good job designing the layout specification. It's really great to be able to specify both selection source and data source!

    I did not manage to get my columns set up in the plist, so I just set them manually afterwards. Also, if there a config setting for turning off "Organize by thread" in the layout plist? Either that or expand all messages (no folded ones)? I have found that showing a flat list is more space efficient and informative. Also with the thread outline, I have also turned off "Organize by thread" in the main outline.

    I have attached the final "Thread & Correspondence" layout as well as the "Thread" layout (which shows messages from all mailboxes) in case anybody is interested.

  • fnurl

    fnurl December 11th, 2015 @ 07:53 AM

    Btw here is how it looks if anybody else visits this thread ;)

  • benny

    benny December 11th, 2015 @ 10:02 AM

    • State changed from “new” to “resolved”

    This might work:

    threadingType = "flatThreading";
    

    Thanks for sharing.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages