Re: Using a subclass in IB
Re: Using a subclass in IB
- Subject: Re: Using a subclass in IB
- From: Andreas Mayer <email@hidden>
- Date: Sun, 10 Nov 2002 19:09:29 +0100
Am Sonntag, 10.11.02 um 16:10 Uhr schrieb matt neuburg:
For NSTextView it's more involved; IB doesn't let you do this
directly. The usual approach is to do it in code. This has been
covered here many times, so check the archives. m.
Sure it does.
What you get when you choose a text view in IB is actually a scroll
view with an embedded text view.
So you
- import your header file
- add a custom view to your window/panel/whatever
- change the custom view's class to your text view subclass
- choose Make subviews of - Scroll View from the Layout menu
Voil`
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.