Re: newbie question about buttons..
Re: newbie question about buttons..
- Subject: Re: newbie question about buttons..
- From: Duncan Campbell <email@hidden>
- Date: Tue, 30 Nov 2004 12:34:43 +1100
Hi Bob (or Thomas?),
this is exactly my problem - I don't seem to have a "myDrawerOutlet"
variable to send a message to.
As I said, I am a newbie - I am more familiar with the windows world,
where when you drop controls/widgets onto forms then you get variables
defined behind the scenes that let you access those widgets. XCode/IB
don't seem to do this - if I do a search for "drawer" in my entire
project, it comes up blank - even though i have a drawer!
Ideas?
Cheers,
=========================================
Duncan Campbell
http://www.duncanandsarah.com/duncan
=========================================
Real programmers don't bring brown-bag lunches. If the vending machine
doesn't sell it, they don't eat it. Vending machines don't sell quiche.
On 30/11/2004, at 12:19 PM, Thomas Davie wrote:
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