• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Making NSBox programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Making NSBox programmatically
      • From: "John C. Randolph" <email@hidden>
    • Re: Making NSBox programmatically
      • From: Julian Cain <email@hidden>
  • Prev by Date: Cocoa-heads Lake Forest MOVED to Thursday 2/16
  • Next by Date: Re: Making NSBox programmatically
  • Previous by thread: Cocoa-heads Lake Forest MOVED to Thursday 2/16
  • Next by thread: Re: Making NSBox programmatically
  • Index(es):
    • Date
    • Thread