Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with NSScrollView



On Thursday, July 31, 2003, at 06:55 PM, matt neuburg wrote:

On Thu, 31 Jul 2003 13:59:03 -0600, Thomas Harrington <email@hidden> said:
On Thursday, July 31, 2003, at 04:28 AM, matt neuburg wrote:

On Mon, 28 Jul 2003 12:35:08 -0700, John Randolph <email@hidden> said:

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.

Are you actually working with a version of IB in which what you just
said is possible? If so, what version? Thx - m.

It seems pretty straightforward in the December release:

1. In "classes" tab, create subclass of NSTextView. Alternately, if
you already created the subclass in PB, drag its header file in so IB
is aware of it.
2. Drag NSScrollView with embedded NSTextView from palette to window.
3. Select NSTextView; bring up inspector's "custom class" panel. The
subclass from step 1 is listed, so select it.

Fascinating, Captain. Well, not on my machine. The custom class panel says "not applicable", just like it's done for the last two-and-a-half years when I try this. m.

Sure you've got the NSTextView selected? I can get that panel to read "not applicable" in a variety of ways. But if you select one of the objects you've placed in a nib, the panel should at a minimum show that class's name. If there are alternatives IB knows of (like a subclass you've told it about) it should list those as well.

--
Tom Harrington
email@hidden
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.