Re: problem with NSScrollView
Re: problem with NSScrollView
- Subject: Re: problem with NSScrollView
- From: John Randolph <email@hidden>
- Date: Mon, 28 Jul 2003 12:35:08 -0700
On Monday, July 28, 2003, at 11:46 AM, email@hidden wrote:
Hi all, how can i insert my own component (subclassing NSTextView) in
aNSScrollObject ?? I need scroll support in my own text component
Two ways:
1) Get a CustomView object from the palette, select the "custom class"
inspector (command-5, I believe), set its class to your text view
subclass, and group it in a scroll view (Layout->Make Subviews
Of->Scroll View).
2) Grab a normal textView in the scrollview from the 'Cocoa-text'
palette, double click inside the scrollview to select the text view,
and set it to a custom class.
In either case, you'll need to make IB aware of your textview subclass,
either by parsing its header, or manually creating a record for it in
the Classes tab.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.