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

NSDrawer newbie question


  • Subject: NSDrawer newbie question
  • From: Mike Dean <email@hidden>
  • Date: Mon, 09 Sep 2002 08:37:25 -0600

I have an NSDrawer containing a TableView that correctly responds to 2 buttons
in the drawer (Cancel changes, Accept changes). The drawer is opened when I
activate a button on the parent window, and closes when I use that same button
in the parent window. From a user standpoint, however, it is apparent that I
really want the drawer to close when I press either of the buttons that are IN
the drawer itself.

The accept button calls a controller method called AcceptChanges:(id)sender
which makes the changes in my program variables, and then attempts
[variablesDrawer close]:

-(void) AcceptChanges:(id)sender
...
setvars etc.
NSLog(@"Have changed the values");
[variablesDrawer close];
NSLog(@"Drawer should have closed");
...
but of course, while both messages appear in the console, the drawer remains
open until I use the button in theparent window. There is no error in the
console.

Any help will be appreciated. I am sorry I am not at the right computer, so I
have had to reconstruct the code above from memory instead of being more
precise.
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSDrawer newbie question
      • From: Jeremy Dronfield <email@hidden>
    • Re: NSDrawer newbie question
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Tabbing into NSTableView finally solved!!
  • Next by Date: Re: Tabbing into NSTableView finally solved!!
  • Previous by thread: Re: Improving very slow NSView with cached NSImage
  • Next by thread: Re: NSDrawer newbie question
  • Index(es):
    • Date
    • Thread