Best way to display a NSTextView subclass
-
I have a NSTextView subclass that I need to display.
I tried to have Interface Builder read it the class header, but it would
not give the subclass as an option for the 'Custom Class' for an
existing NSTextView.
I also tried using a Custom View, which displayed the subclass, but not
contained in a NSScrollView.
Is there a way to make this view work through IB, or do I have to create
the NSScrollView and the NSTextView subclass programatically?
Regards,
Richard Schreyer -
On Saturday, April 7, 2001, at 03:11 PM, Richard Schreyer wrote:
> I have a NSTextView subclass that I need to display.This is currently a limitation of IB with TextViews.
>
> I tried to have Interface Builder read it the class header, but it
> would not give the subclass as an option for the 'Custom Class' for an
> existing NSTextView.
>
> I also tried using a Custom View, which displayed the subclass, but not
> contained in a NSScrollView.
>
> Is there a way to make this view work through IB, or do I have to
> create the NSScrollView and the NSTextView subclass programatically?
>
>
use a customView in IB (assign the custom view to your class) then group
the custom view you just created in a scroll view.
This should work just fine.
vince -
On Saturday, April 7, 2001, at 03:11 PM, Richard Schreyer wrote:
> I have a NSTextView subclass that I need to display.
>
> I tried to have Interface Builder read it the class header, but it
> would not give the subclass as an option for the 'Custom Class' for an
> existing NSTextView.
>
> I also tried using a Custom View, which displayed the subclass, but not
> contained in a NSScrollView.
>
> Is there a way to make this view work through IB, or do I have to
> create the NSScrollView and the NSTextView subclass programatically?
You can group your custom view in a scrollview.
-jcr



