Making NSBox programmatically
Making NSBox programmatically
- Subject: Making NSBox programmatically
- From: Alan Smith <email@hidden>
- Date: Mon, 13 Feb 2006 21:30:02 -0500
I need to make a box through code and not through IB. The idea's to add a
NSBox to place an icon in when the user presses a button, like the dock when
you drag an app/folder on to it; it expands. I can expand the window with
setContentSize, and that works fine. But I can't figure out how to create
the box and place it.
Okay, here is the window, ignore the " ' ", they're just to make it look
good.
Window:
---------------------
| |----------------| |
| | | |
| | The' | |
| | Box' | |
| |----------------| |
---------------------
Nice, no? Okay, there's the window and a NSBox inside it. Now I want to
create another box when the user press's a button.
----------------------------------------
| |----------------| |----------------| |
| | | | | |
| | The' | | The' | |
| | Box' | | Box'' | |
| |----------------| |----------------| |
----------------------------------------
Now I can, like I said, expand the window easily, but the creation of the
box is the difficult part. Once created how do I get it to line up with the
other box?
Okay that's all for tonight, it's getting late.
Thanks in advance, Alan
_______________________________________________
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