Re: default NSTextView border
Re: default NSTextView border
- Subject: Re: default NSTextView border
- From: Ricky Sharp <email@hidden>
- Date: Fri, 14 Jan 2005 18:35:22 -0600
On Jan 14, 2005, at 4:41 PM, Bob Miller wrote:
Does anyone know how to turn off the default black line border of an
NSTextView ? I don't see any methods available for this similar to an
NSTextField class. ?? Any help would be greatly appreciated.
When you drag an NSTextView into a window, the view hierarchy is:
+ NSWindow (window)
+ NSView (content view)
+ NSScrollView (NSTextView)
+ NSTextView
The border is actually an attribute of the NSScrollView. The following
should work:
[[theTextView superview] setBorderType:NSNoBorder];
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden