Re: NSTextView + other NSView in NSScrollView?
Re: NSTextView + other NSView in NSScrollView?
- Subject: Re: NSTextView + other NSView in NSScrollView?
- From: Jacob <email@hidden>
- Date: Thu, 31 Jul 2008 21:28:43 -0700
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@hidden> wrote:
>
> 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 Jul 28, 2008, at 7:48 AM, Andy Lee <email@hidden> 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 Builder, changed the class of the bottom one to NSTextView,
>>>
>>> Just one more thought: I think some people have mentioned unexpected resizing behavior because they didn't take into account the fact that NSTextView uses a flipped coordinate system.
>>
>> Yes, I was wondering about that. It seems like that's the issue I run into when trying to use an NSTextView that's not the documentView of the NSScrollView. What can I do to work around that?
>
_______________________________________________
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