• 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: Drawer problem (probably newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawer problem (probably newbie)


  • Subject: Re: Drawer problem (probably newbie)
  • From: Roarke Lynch <email@hidden>
  • Date: Wed, 1 Jan 2003 11:54:45 -0500

You're not going to want to add any methods to NSDrawer, no reason to. NSDrawer sends an NSDrawWillOpenNotification. Have your controller object register itself for this notification and call [myTableView reloadData];


On Tuesday, December 31, 2002, at 01:50 PM, Mike Dean wrote:

I have a multidoc app with several drawers. In one drawer there is a tableview, and I update that tableview when I push a button that is in that drawer. However, I need a way to assure that while the drawer is closed, if the tableview changes, that it is updated before opening the drawer.

I note that the button on the main window that is causing the drawer to open is connected to the toggle method from NSDrawer. However, I am unclear how to alter this handling.

I did go into IB and find NSDrawer, and it is possible to "add a method" to that - then I could reconnect the drawer to have it go to my method instead of toggle. However, this looks like I am altering the underlying NSDrawer class directly, so when I update my development environment I will lose those changes. Bad idea, I think.

Any help will be appreciated.

- Mike Dean

Roarke Lynch
-------------------------------
email@hidden
_______________________________________________
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.

  • Prev by Date: NSColorWell deactivate
  • Next by Date: Re: [Dumb Question] How to access indicator images?
  • Previous by thread: NSColorWell deactivate
  • Next by thread: Re: [Dumb Question] How to access indicator images?
  • Index(es):
    • Date
    • Thread