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.
    >
    > 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.
    >
    This is currently a limitation of IB with TextViews.

    > 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
previous month april 2001 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Go to today
MindNode
MindNode offered a free license !