Re: NSTextView + other NSView in NSScrollView?

2008-07-31 Thread Jacob
Alright, I'm able to get a view that can resize to a NSTextView subview's size, and it works as the document view of a scroll view, but I'm still not sure how to make it work with another view above it. On Mon, Jul 28, 2008 at 8:53 AM, Andy Lee [EMAIL PROTECTED] wrote: I don't know offhand. A

Re: NSTextView + other NSView in NSScrollView?

2008-07-28 Thread Jacob Bandes-Storch
On Jul 27, 2008, at 10:49 PM, Andy Lee wrote: On Jul 27, 2008, at 11:31 PM, Jacob Bandes-Storch wrote: I'm trying to create a Mail-style scroll view, with a view for information (like the view for message headers) above a text view for the content. I created two NSViews in Interface

Re: NSTextView + other NSView in NSScrollView?

2008-07-28 Thread Graham Cox
On 28 Jul 2008, at 11:59 pm, Jacob Bandes-Storch wrote: Because the Text View that IB provides is embedded in a scroll view already and I can't add another view to it. Choose Unembed Objects to get the unenclosed NSTextView after dragging the view to the window in IB. No... what I want

Re: NSTextView + other NSView in NSScrollView?

2008-07-28 Thread Andy Lee
On Jul 28, 2008, at 9:59 AM, Jacob Bandes-Storch wrote: On Jul 27, 2008, at 10:49 PM, Andy Lee wrote: If you were trying to create a Mail-like layout, I would have expected your two views to be an NSTableView and an NSTextView, both embedded in a Split View. No... what I want is like the

Re: NSTextView + other NSView in NSScrollView?

2008-07-28 Thread Andy Lee
On Jul 28, 2008, at 10:11 AM, Graham Cox wrote: I suspect Mail just uses a single NSTextView and just arranges the header text using custom text attributes, etc. Maybe someone at Apple reading this would know for sure. I guessed that too, but a look at the nib file in Mail.app indicates

Re: NSTextView + other NSView in NSScrollView?

2008-07-28 Thread Andy Lee
On Jul 27, 2008, at 11:31 PM, Jacob Bandes-Storch wrote: I'm trying to create a Mail-style scroll view, with a view for information (like the view for message headers) above a text view for the content. I created two NSViews in Interface Builder, changed the class of the bottom one to

Re: NSTextView + other NSView in NSScrollView?

2008-07-28 Thread Jacob Bandes-Storch
On Jul 28, 2008, at 7:48 AM, Andy Lee [EMAIL PROTECTED] wrote: On Jul 27, 2008, at 11:31 PM, Jacob Bandes-Storch wrote: I'm trying to create a Mail-style scroll view, with a view for information (like the view for message headers) above a text view for the content. I created two NSViews in

Re: NSTextView + other NSView in NSScrollView?

2008-07-28 Thread Andy Lee
I don't know offhand. A quick search on CocoaBuilder for NSTextView flipped turns up this suggestion to flip the superview: http://www.cocoabuilder.com/archive/message/cocoa/2004/6/20/110164 But I haven't read it closely. --Andy On Jul 28, 2008, at 11:09 AM, Jacob Bandes-Storch wrote: On

NSTextView + other NSView in NSScrollView?

2008-07-27 Thread Jacob Bandes-Storch
I'm trying to create a Mail-style scroll view, with a view for information (like the view for message headers) above a text view for the content. I created two NSViews in Interface Builder, changed the class of the bottom one to NSTextView, selected both, and clicked Layout Embed Objects

Re: NSTextView + other NSView in NSScrollView?

2008-07-27 Thread Omar Qazi
Putting two views inside a scroll view seems like a weird way to go about this. What I would do is create a custom NSView subclass that draws information at the top and has an NSTextView as a subview drawn underneath. Omar Qazi Hello, Galaxy! 1.310.294.1593 On Jul 27, 2008, at 8:31 PM,

Re: NSTextView + other NSView in NSScrollView?

2008-07-27 Thread Andy Lee
On Jul 27, 2008, at 11:31 PM, Jacob Bandes-Storch wrote: I'm trying to create a Mail-style scroll view, with a view for information (like the view for message headers) above a text view for the content. I created two NSViews in Interface Builder, changed the class of the bottom one to