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

Re: Drawers


  • Subject: Re: Drawers
  • From: Angela Brett <email@hidden>
  • Date: Mon, 10 Sep 2001 13:48:57 +1200

I don't know for sure, buy my guess is that the window that represents the
drawer does not exist until after -drawerWillOpen: is called. The textView
probably can not draw into a non-existent window.

That can't be the problem, because the textView is displayed properly as long as the drawer is not opened straight after the code to configure and display the textView. It's as if there's something like a 'setNeedsBlah' happening to the drawer when I change the textView, and the 'blah' happens after the other code has finished, but I need to tell it to blahIfNeeded before opening the drawer. I guessed that the blah might be 'display' but drawers can't do that. Actually, I already had made both drawerWillOpen and drawerWillOpen display the textView, just in case it helped, but as far as I can tell it doesn't make any difference to the result whether I implement those methods or not.

There may
also be some issue with -contentSize. Check to see if the content view is
the size that you think it is when you manipulate it programmatically.

In IB I have set the size of the view itself, and the maximum and minimum contentView sizes for the drawer to be all the same size. However, in the Info for the drawer, there are three sizes... the Content Size (which is greyed out and shows 200x200 - I don't know if this has to do with my problem) and the minimum and maximum content sizes, which I have set to be the same value as the view's size. I have not mentioned the sizes in the code. I was wondering if maybe there's a problem with that, because I don't know why the content size is greyed out in IB.


References: 
 >Drawers (From: Angela Brett <email@hidden>)
 >Re: Drawers (From: "Erik M. Buck" <email@hidden>)

  • Prev by Date: Re: Drawers
  • Next by Date: Re: Would Any Developers Use This?
  • Previous by thread: Re: Drawers
  • Next by thread: Re: Drawers
  • Index(es):
    • Date
    • Thread