• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Subclassing NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subclassing NSTextView


  • Subject: Subclassing NSTextView
  • From: John Joyce <email@hidden>
  • Date: Tue, 12 Aug 2008 20:01:51 -0500

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 (email@hidden)

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:
This email sent to email@hidden


  • Prev by Date: Re: Controlling line-breaking in a text view
  • Next by Date: Re: Controlling line-breaking in a text view
  • Previous by thread: Re: Archiving NSColor as NSData
  • Next by thread: RE: Subclassing NSTextView
  • Index(es):
    • Date
    • Thread