FROM : D.K. Johnston
DATE : Sat Jun 24 15:57:30 2006
I made a window in IB containing NSTextField and NSTextView objects.
I subclassed NSWindowController and connected it to these objects
with IB outlets. Subsequently, I was able to write in the NSTextField
objects with the setStringValue: method, but couldn't get anything to
appear in the NSTextView object using setString:.
I got everything to work using bindings and NSAttributedString
instead, and I'm quite content with it. But I'm still curious about
why my first attempt failed.
dkj
DATE : Sat Jun 24 15:57:30 2006
I made a window in IB containing NSTextField and NSTextView objects.
I subclassed NSWindowController and connected it to these objects
with IB outlets. Subsequently, I was able to write in the NSTextField
objects with the setStringValue: method, but couldn't get anything to
appear in the NSTextView object using setString:.
I got everything to work using bindings and NSAttributedString
instead, and I'm quite content with it. But I'm still curious about
why my first attempt failed.
dkj
| Related mails | Author | Date |
|---|---|---|
| D.K. Johnston | Jun 24, 15:57 | |
| Fritz Anderson | Jun 26, 23:39 |






Cocoa mail archive

