Skip navigation.
 
mlRe: Using a subclass in IB
FROM : Andreas Mayer
DATE : Sun Nov 10 19:09:29 2002

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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlUsing a subclass in IB Edward Fink Nov 9, 21:01
mlRe: Using a subclass in IB Sam Griffith Nov 10, 05:53
mlUsing a subclass in IB matt neuburg Nov 10, 16:10
mlRe: Using a subclass in IB Andreas Mayer Nov 10, 18:46
mlRe: Using a subclass in IB Andreas Mayer Nov 10, 19:09
mlUsing a subclass in IB matt neuburg Nov 11, 17:05