advertisement

Article:
  Giving the Simple Text Editor 'Legs'
Subject:   Making the right connection (10.1 dev tools problem)
Date:   2001-12-21 02:37:35
From:   ciofey
Response to: tried in 10.1 dev tools?

I have another 10.1 problem.


When I make the connection I always get the source "textView" connected to the destination "NSScrollView(NSTextView)" instead of just "NSTextView", resulting in the following error message when I try to save a document from mySimpleTextEditor:


[NSScrollView textStorage]: selector not recognized.


I realize that this means that the NSScrollView has no textStorage, so I simply want to know how to (in 10.1) connect to the NSTextView instead of the NSScrollView. Control-click-drag-release always connects me to the NSScrollView(NSTextView).


Either that, or how to get hold of the NSTextView (that obviously has some relationhip - though not obvious which one - to NSScrollView) from the NSScrollView.