Re: setting up an NSTextView manually
Re: setting up an NSTextView manually
- Subject: Re: setting up an NSTextView manually
- From: Keary Suska <email@hidden>
- Date: Wed, 27 Jun 2007 17:37:12 -0600
- Thread-topic: setting up an NSTextView manually
on 6/27/07 1:10 PM, email@hidden purportedly said:
> I've referred to this document :
> http://developer.apple.com/documentation/Cocoa/Conceptual/TextArchitecture/Tas
> ks/AssembleSysByHand.html
>
<snipped assembly-by-hand>
>
> my goal is to set up a text container and text view within a window, that
> doesn't fill the entire window. When the action that executes this code is
> invoked, the gray background color of the textView fills the entire window.
> 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 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.
Are you sure you need to do this? Why aren't you following the instructions
at:
http://developer.apple.com/documentation/Cocoa/Conceptual/TextUILayer/Tasks/
CreateTextViewProg.html#//apple_ref/doc/uid/20000930
instead?
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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