[basic] retain an NSTextView object and update a window
[basic] retain an NSTextView object and update a window
- Subject: [basic] retain an NSTextView object and update a window
- From: Jaime Magiera <email@hidden>
- Date: Wed, 1 Jan 2003 23:57:44 -0500
Let's say I have a window with an NSTextView. The class
aWindowController.m is the window's delegate. That delegate defines
methods to display text in the textView. Now, when I call these methods
from within the controller class, everything works as expected.
However, if I try to call the the same methods from outside the class,
it won't work on the window. Presumably, because I'm not acting upon
the NSTextView instance of the currently open window. I need to do an
object retain, correct? I've read some Apple docs and Learning Cocoa
but I think I need a bit of help doing this right.
Any pointers to more good docs/examples on the topic?
Jaime
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.