Re: drawer toggle
Re: drawer toggle
- Subject: Re: drawer toggle
- From: Alex Rice <email@hidden>
- Date: Sat, 4 Jan 2003 10:08:29 -0700
On Saturday, January 4, 2003, at 08:37 AM, John Q. wrote:
Hi,
If I had a button on a drawer, when I press this button I would toggle
to another drawer!!
If I make a connection from the button to the new drawer on toggle,
the new drawer opens behind the first drawer!!
What make I false?
My second question is, If I make a connection in the IB to a drawer or
else, can I wirte in PB something in this connection, like open the
drawer(from IB) and then in the PB I would like to start in this open
connection the scanner with a twain funktion too!! Is this possible?
Both examples above would require you do write your own IBAction and
connect to that instead of the connecting to the actions of the drawer
control. That IBAction method can perform all of the above.
-(IBAction) drawerTwiddle: (id) sender
{
// close first drawer if it's open
// open second drawer if it's open
// initialize twain connection
}
Usually these actions would go in a Controller object, a
NSWindowController subclass or your NSDocument subclass class.
See the IB docs
http://developer.apple.com/techpubs/macosx/DeveloperTools/
InterfaceBuilder/InterfaceBuilder.help/Contents/Resources/
English.lproj/CocoaClass/Importing_a_Class.html
http://developer.apple.com/techpubs/macosx/DeveloperTools/
InterfaceBuilder/InterfaceBuilder.help/Contents/Resources/
English.lproj/CocoaClass/Adding_Acti_sting_Class.html
Alex Rice <email@hidden> | Mindlube Software |
http://mindlube.com
what a waste of thumbs that are opposable
to make machines that are disposable Ani DiFranco
_______________________________________________
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.