• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[basic] retain an NSTextView object and update a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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.

  • Follow-Ups:
    • Re: [basic] retain an NSTextView object and update a window
      • From: David Rio Vierra <email@hidden>
  • Prev by Date: Re: Cocoa code for publishing a calendar
  • Next by Date: Help with Timer
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #1731 - 13 msgs
  • Next by thread: Re: [basic] retain an NSTextView object and update a window
  • Index(es):
    • Date
    • Thread