Re: setting up an NSTextView manually
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