adding another drawer in IB

Hi

My project as it stands (Applescript Application) has one main window and one draw, they were created by opening IB, deleting the window that was presented in instances, and then dragging NSWindow & NSDrawer (the combo set up) over to the instances panel from Cocoa-Windows window, did the appropriate code to button, drawer connections, all works well.
Now I want to add another drawer and cant figure how to do this correctly, I see I can drag another draw over to instances, but this does not create another DrawContent.
Could some one please explain to me how to create another draw and set it up correctly (this is my first time with drawers)

This is the code I am using.


on clicked theObject
	if name of theObject is "open" then
		tell window "main"
			set currentState to state of drawer "drawer"
			if currentState is equal to drawer closed or currentState is equal to drawer closing then
				tell drawer "drawer" to open drawer on bottom edge
				set title of button "open" to "Close Drawer"
			else if name of theObject is "open" then
				set currentState to state of drawer "drawer"
				if currentState is equal to drawer opened or currentState is equal to drawer opening then
					tell drawer "drawer" to close drawer
					set title of button "open" to "Open Drawer"
					------------------- 2nd Drawer ----------
					--else if name of theObject is "open2" then
					--tell window "main"
					--set currentState to state of drawer "drawer2"
					--if currentState is equal to drawer closed or currentState is equal to drawer closing then
					--tell drawer "drawer2" to open drawer on bottom edge
					--set title of button "open2" to "Close Drawer"
					--else if name of theObject is "open2" then
					--set currentState to state of drawer "drawer2"
					--if currentState is equal to drawer opened or currentState is equal to drawer opening then
					--tell drawer "drawer2" to close drawer
					--set title of button "open2" to "Open Drawer"
					--end if
					--tell drawer "drawer" to close drawer
					--end if
					--end tell
					-------------
				end if
			end if
		end tell
	end if
end clicked

Cheers
Budgie

got it sorted, took a lot of mucking around, and it’s not as straight forward especially when youre not sure of what you are doing.

Budgie