• 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
Re: NSTextView + other NSView in NSScrollView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTextView + other NSView in NSScrollView? (From: Jacob Bandes-Storch <email@hidden>)
 >Re: NSTextView + other NSView in NSScrollView? (From: Andy Lee <email@hidden>)
 >Re: NSTextView + other NSView in NSScrollView? (From: Jacob Bandes-Storch <email@hidden>)
 >Re: NSTextView + other NSView in NSScrollView? (From: Andy Lee <email@hidden>)
 >Re: NSTextView + other NSView in NSScrollView? (From: Jacob Bandes-Storch <email@hidden>)
 >Re: NSTextView + other NSView in NSScrollView? (From: Andy Lee <email@hidden>)

  • Prev by Date: Doc based app - creating a document
  • Previous by thread: Re: NSTextView + other NSView in NSScrollView?
  • Next by thread: draw string with ellipsis
  • Index(es):
    • Date
    • Thread