• 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: reusable custom views?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reusable custom views?


  • Subject: Re: reusable custom views?
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 23 Sep 2004 22:39:15 +0200


On 23.9.2004, at 22:31, Frank Midgley wrote:
I'd like to create a custom NSView in IB by creating a new View object, adding some standard controls, and creating some connections. I know how to do that but I only end up with one instance of the view. What I'd like to do from there is create multiple instances of that same view with the same controls in it, dragging them into a window in my nib file. Is there any way to do this easily?

You can move the controls and preserve connections by using the pop-n-drag-n-drop trick. Open the view, select all, click and hold on any control until they all "pop" off the canvas and then drag them to another view.

Or just copy and paste, or Alt-drag, the whole thing.

Downsides: will not bring over the view itself and it moves, not copies. The latter can be worked around when moving between nib's by reverting the source nib after moving.

Which works inside one NIB and between more of them as well. --- Ondra Čada OCSoftware: email@hidden http://www.ocs.cz private email@hidden http://www.ocs.cz/oc

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: reusable custom views?
      • From: David Feldman <email@hidden>
References: 
 >reusable custom views? (From: David Feldman <email@hidden>)
 >Re: reusable custom views? (From: Frank Midgley <email@hidden>)

  • Prev by Date: Re: reusable custom views?
  • Next by Date: Re: reusable custom views?
  • Previous by thread: Re: reusable custom views?
  • Next by thread: Re: reusable custom views?
  • Index(es):
    • Date
    • Thread