In Xcode 3.1, what is the minimum necessary to create a useable subclass of NSTextView ?
(before adding/overriding methods)
Additionally, in IB, is there any effective difference from using an NSTextView, selecting the text view within its scroll view and changing its class (in the inspector) to that of the subclass (say, MyTextView, for example) and selecting a custom view, setting its class to MyTextView and then selecting Layout > Embed Objects In > Scroll View ?

I'm aware of the usual caveats leaning toward delegation and notification, but I'd like to do this as an exercise to better understand the capabilities of subclassing NSTextView.

Even a link to a tutorial/walk through would be nice.

I've already read
Subclassing NSTextView
in the developer docs, but it does not quite show me everything, it seems.

In the feeble attempts I've made, when running the app, the custom text view places vertical lines where glyphs would be, and it does so starting at wherever in the view you initially click...


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to