Skip navigation.
 
mlRe: Drawer problem (probably newbie)
FROM : Roarke Lynch
DATE : Wed Jan 01 17:54:45 2003

   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_removed>
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlDrawer problem (probably newbie) Mike Dean Dec 31, 19:50
mlRe: Drawer problem (probably newbie) Roarke Lynch Jan 1, 17:54