• 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
building a Mail-like preview pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

building a Mail-like preview pane


  • Subject: building a Mail-like preview pane
  • From: Sandeep Parikh <email@hidden>
  • Date: Mon, 28 Mar 2005 11:08:59 -0600

I'm trying to build a preview pane into my app similar to the one used by Mail.app and I'm having some trouble.

I've gotten it put together in IB to a point, however I need to fix some of the UI weirdness. I've got 2 pieces to this so far, an NSScrollView and the content view for it which consists of some NSTextFields (non-editable) and an NSTextView.

Basically, I need to programatically do the following:
- resize the NSTextView so its long enough to contain the content I put in it
- remove the scrollbars from the TextView
- resize the bounds of the NSScrollView to match the length of the NSTextView
- and therefore, reactivate the scrollbars for the NSScrollView to have the entire preview pane scrollable


I've been messing around with the bounds and frame of the NSTextView and NSScrollView to no avail. Can anyone point me to any sample code with some resources for resizing views and subviews, etc?

Thanks!
-Sandeep

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: NSMatrix Drag Reordering/Swapping
  • Next by Date: Re: Saving State of NSOutlineView in Document-based App
  • Previous by thread: Re: NSMatrix Drag Reordering/Swapping
  • Next by thread: Re: building a Mail-like preview pane
  • Index(es):
    • Date
    • Thread