• 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: Need some more understanding about NSDrawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need some more understanding about NSDrawer


  • Subject: Re: Need some more understanding about NSDrawer
  • From: Craig Laird <email@hidden>
  • Date: Tue, 26 Dec 2006 10:05:03 +1100


Hi Thanks for the info. It worked they way it should. So thanks once again


Cheers

	Craig


On 26/12/2006, at 4:50 AM, Bill Bumgarner wrote:

On Dec 25, 2006, at 12:58 AM, Craig Laird wrote:
- (void)toggleDrawer:(id)sender {

NSDrawerState state = [drawer state];
if (NSDrawerOpeningState == state || NSDrawerOpenState == state) {
[drawer close];
} else {
[drawer openOnEdge:NSMinXEdge];
}
}

Seems like an awful lot of effort.

- (void) toggleDrawer:(id)sender {
	[drawer toggle: sender];
}

Or, better yet, you could just hook the toolbar button directly to the drawer and do away with the above code altogether.

There is absolutely nothing magic about "Interface Builder Buttons"; nothing that can't be directly translated to code. It can seem like there is magic, but there really isn't!

b.bum


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Need some more understanding about NSDrawer (From: Craig Laird <email@hidden>)
 >Re: Need some more understanding about NSDrawer (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Adding Help to App
  • Next by Date: CustomControl init to real instance? (newbie)
  • Previous by thread: Re: Need some more understanding about NSDrawer
  • Next by thread: CustomControl init to real instance? (newbie)
  • Index(es):
    • Date
    • Thread