• 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: Auto-opening a Drawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto-opening a Drawer


  • Subject: Re: Auto-opening a Drawer
  • From: Charles Jolley <email@hidden>
  • Date: Thu, 12 Jul 2001 17:11:47 -0500

HI Michael:
The IB connections all look fine, and I have a menu item that will toggle properly. Just to check, I built a button as you suggested and it also worked. The thing is, when I call the open: method in windowControllerDidLoadNib:, the drawer THINKS that it is open. (For example, you would have to execute the drawer toggle: message twice to get it show up, the first time close it, and the second to open it.) It just does not display.

If this is where the open: method is supposed to be called, then this is a bug, but I think I am just using it wrong somehow.

-C

On Thursday, July 12, 2001, at 04:54 PM, Michael Dagate wrote:

This should work fine in windowControllerDidLoadNib: Are you sure that you connected your outlet in IB?

Also, as a test, try placing an extra button on your window and connecting it to NSDrawer.toggle: to open and close your drawer manually. This should reveal if you have some other problem besides open:.

Michael

On Thursday, July 12, 2001, at 03:35 PM, Charles Jolley wrote:

Hello Cocoa Afscinandos:

I know this is simple, but I can't seem to get it to work. I have an NSDrawer attached to a window that I want to have open automatically when the window is created. I am using NSDocument and the default NSWindowController instances.

I have tried sending [(NSDrawer instance) open] in windowControllerDidLoadNib: in NSDocument and awakeFromNib: in NSDocument. The result is that the NSDrawer thinks it is open, but does not actually display itself.

Where do I put this call?

TIA,
-Charles
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Prev by Date: Re: Auto-opening a Drawer
  • Next by Date: Re: Want to make changes to my UI, do I lose current code?
  • Previous by thread: Re: Auto-opening a Drawer
  • Next by thread: NSTextView, NSCenterTextAlignment and trailing spaces
  • Index(es):
    • Date
    • Thread