Women in Technology

Hear us Roar



Article:
  Giving the Simple Text Editor 'Legs'
Subject:   tried in 10.1 dev tools?
Date:   2001-11-21 13:31:24
From:   dwchris
has anyone built this project with the 10.1 dev tools? I find that they are subtly different and you cant follow the instruction steps in the article anymore.


I trudged on anyway, but had to instantiate the mydocument class to get anything to work. but when I did it builds okay but I get the error "cant save document"
mentioned in the other messages. but none of the pitfalls there seem to apply. the outlet appears to wired up etc. when I debug, after a user save, my dataRepresentationOfType routine is called but evidently something goes wrong.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Making the right connection (10.1 dev tools problem)
    2001-12-21 02:37:35  ciofey [View]

    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.