Thanks for the reply, which helps but I still have a more fundamental
question. My application was created following steps outlined in
Hillegass's excellent book for creating a document-based
application. Thus, in Xcode I chose Cocoa Document-based Application
from New Project, which creates a project with a nib file called
MyDocument.nib (as just about everyone reading this list knows). In
the Interface Builder window showing what is in this file, there is a
window object, and selecting this shows the window where the document
contents go. I added a button to the bottom of the window and
connected things up so that when the button is clicked, code in a
controller is accessed. Here, from within the body of this
controller, I want to retrieve the text that has been entered into
the text view of the window. But at this point I'm executing code in
the controller that I created and I don't know how to specify the
window in which the text view resides. Hope that makes sense; if
not, please let me know so I can clarify it. As I said, I'm entirely
new to OOP and Cocoa!
On Aug 30, 2005, at 4:50 PM, John C. Randolph wrote:
On Aug 30, 2005, at 4:46 PM, Boyd Collier wrote:
I have a very simple document application with only one window
showing the contents of a plain text file and a single button.
When the button is pressed, I want to copy the text (without any
of the formatting) into a buffer that I can manipulate.
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden