Re: newbie question about buttons..
Re: newbie question about buttons..
- Subject: Re: newbie question about buttons..
- From: Thomas Davie <email@hidden>
- Date: Tue, 30 Nov 2004 01:19:52 +0000
Simply send the message toggle to your drawer:
[myDrawerOutlet toggle:self];
(note you'll need to connect up the drawer outlet in IB). Just a quick
note - Drawers are evil, if you can avoid it, don't use it.
Bob
--
God is real... Unless you define it as a non-real complex number.
On 30 Nov 2004, at 01:14, Duncan Campbell wrote:
Hey folks - i'm very much a newbie here, so forgive the stupid
question:
I have created an app with a drawer, and a button that is wired (in
IB) to the "toggle:" method of the NSDrawer - this is all "automagic"
IB stuff - no code.
Now I've changed my app to have a toolbar, and am trying to figure out
how to wire up a toolbar item to the "toggle:" method instead. I've
got as far as creating the toolbar, adding an item, and writing a
method for the "click" - but i don't know how to access the method of
the NSDrawer since I don't have any reference to it thru code (it's
all just in IB).
Any ideas - as I said, I'm a complete newbie...
Cheers.
=========================================
Duncan Campbell
http://www.duncanandsarah.com/duncan
=========================================
The world is moving so fast these days that the man who says it can't
be
done is generally interrupted by someone doing it.
-- E. Hubbard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden