• 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: setting up an NSTextView manually
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting up an NSTextView manually


  • Subject: Re: setting up an NSTextView manually
  • From: Martin Wierschin <email@hidden>
  • Date: Wed, 27 Jun 2007 20:08:23 -0700

However, the text container itself is a 100x100 square at the top left of the text view. Why is the cFrame I'm using being ignored? What happened to the origin?

I might guess that NSWindow forces its content view to fill the entire window, thus ignoring your frame. Try adding your NSTextView as a subview of the already existing content view.


I expect that since the text container was placed at the top left of the window, y increases downward in an NSView. Any help is greatly appreciated.

Whether or not y increases downwards or upwards depends on whether the NSView is flipped or not (see the isFlipped method). NSTextView is always flipped (y increases downward).


~Martin

_______________________________________________

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: 
 >setting up an NSTextView manually (From: David Harper <email@hidden>)

  • Prev by Date: Re: PDFKit - CurrentPage with scale factor not in 100%
  • Next by Date: crash in NSNavOutlineDelegate
  • Previous by thread: Re: setting up an NSTextView manually
  • Next by thread: Crash in NSTextValueBinder dealloc when closing a window
  • Index(es):
    • Date
    • Thread