Hey everyone,

I've got an interesting problem that I thought I could find the answer to, but have come up short so far.

I'm building a master-detail interface, similar to Mail.app. I'm struggling with the detail view (displaying the currently selected item). In Mail, there are areas for the From:, Subject:, To:, etc, with a rich-text area underneath. This is what I'd like to recreate. I have it *kind of* working, but not how I'd like.

I have some rich text of arbitrary length that I want to display along with the item's metadata (similar to Mail's From and Subject fields). However, I want all of these to be part of the same NSScrollView, so that when I scroll, both the metadata fields and the rich text content move.

The problem I'm facing is that in order to display the RTF data properly, I need an NSTextView, but NSTextView has its own enclosing scroll view that's conflicting with my overall scrollview. In addition, I need to be able to dynamically resize the overall clipped view so that the scrollbars change appropriately.

I might be able to use the WebView object to fake it, but that seems like a less-elegant solution. However, if it's the only one, I suppose I could go with that and then just use CSS to style everything.

So, in a nutshell, how can I recreate the detail view as found in Mail.app?

Thanks,

Dave DeLong

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to