• 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
Drawers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawers


  • Subject: Drawers
  • From: Angela Brett <email@hidden>
  • Date: Mon, 10 Sep 2001 12:36:08 +1200

I have a drawer with an NSTextView as its contentView. I have a method in another object which puts some text into the NSTextView, and configures a few things like text colour and background colour, displays the NSTextView, and then opens the drawer.

The problem is, there must be something I'm missing out here. If I make the method not open the drawer, and then I open the drawer manually using a menu item, the drawer and NSTextView display fine. But if the method opens the drawer straight after configuring the NSTextView, or if the drawer was already open, it is not displayed correctly. Most of the drawer is black except for the part at the top which, if it had been displayed properly, would have had some text in it.

I've tried telling it to display the NSTextView in the drawWillOpen method of the drawer's delegate (which is the same object which was trying to do the other stuff) and I've even tried, in desperation, putting all of the code for manipulating the NSTextView in there, but the results are the same as before. It seems as if something else is being done to the drawer or the textView after the method has finished which I need to invoke within the method so that it's done before the drawer is opened. I don't know what, though - any suggestions? It's my first time working with drawers so chances are it's something quite trivial for the rest of you.
--
Angela Brett email@hidden http://acronyms.co.nz/
"Great minds think different."


  • Follow-Ups:
    • Re: Drawers
      • From: "Erik M. Buck" <email@hidden>
  • Prev by Date: Re: First Responder
  • Next by Date: Re: Would Any Developers Use This?
  • Previous by thread: Re: First Responder
  • Next by thread: Re: Drawers
  • Index(es):
    • Date
    • Thread