• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextView help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView help


  • Subject: NSTextView help
  • From: Dave DeLong <email@hidden>
  • Date: Mon, 20 Jul 2009 21:49:46 -0600

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@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextView help
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Cocoa Graphics Parsing
  • Next by Date: Re: Best approach for selective spell-checking...
  • Previous by thread: Re: Show UIButton Highlight Without Touching?
  • Next by thread: Re: NSTextView help
  • Index(es):
    • Date
    • Thread