Re: building a Mail-like preview pane
Re: building a Mail-like preview pane
- Subject: Re: building a Mail-like preview pane
- From: Modesitt Software <email@hidden>
- Date: Mon, 28 Mar 2005 13:16:19 -0800
Take a look at this URL:
http://www.cocoadevcentral.com/articles/000080.php
-Bill
On Mar 28, 2005, at 10:46 AM, email@hidden wrote:
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