• 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
Re: Custom layout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom layout


  • Subject: Re: Custom layout
  • From: publiclook <email@hidden>
  • Date: Sat, 9 Aug 2003 11:23:02 -0400

The following exchange took place in this forum. Since no one else answered Mr. Swarzman's question in this forum, I will quote a fine answer that was given in another forum:

At 19:10 -0700 7/29/03, publiclook wrote:
>On Tuesday, July 29, 2003, at 07:47 PM, Danny Swarzman wrote:
>
>> I would like to create a view that is repeated inseveral different
>> places
>> in different drawers. It consists of a bunch of buttons and labels that
>> always appear in the same places relative to each other. Can I create
>> one
>> of those once in IB and somehow duplicate it elsewhere. I want to avoid
>> dragging actions and outlets for each of the controls.
>>
>> -Danny
>
>Yes.

<Quote>
A more useful answer would point out that you can create an NSView in
a nib file, and just load that nib file to obtain the view whenever required. The same view can be set as the contentView of windows, or added as a subview of any other view in your application.

Publiclook's answer, however, just indicates a tendency towards being an utter tosser. Bonus points are duly awarded for not using a real name, and for quoting Danny Swarzman's entire email signature in the reply.
<End Quote>

An even more useful answer is to point out that this forum is archived at http://cocoa.mamasam.com. The archive includes wonderful tidbits like the following from 7 days earlier that lists a step by step process for doing what Mr. Swarzman wants:

http://cocoa.mamasam.com/COCOADEV/2003/07/2/69123.php

I should not have answered a question with one word. I should have just ignored the question as everybody else did, and then I wouldn't be an utter tosser.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Custom layout
      • From: Danny Swarzman <email@hidden>
  • Prev by Date: Re: IB Woes
  • Next by Date: Re: scaleUnitSquareToSize
  • Previous by thread: Re: Custom layout
  • Next by thread: Re: Custom layout
  • Index(es):
    • Date
    • Thread