• 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: Frank Midgley <email@hidden>
  • Date: Thu, 23 Sep 2004 15:31:27 -0500

On Sep 23, 2004, at 3:03PM, David Feldman 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.


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.

-Frank

------------------------------------
Frank M. Midgley
email@hidden
http://homepage.mac.com/knarf/

_______________________________________________
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: Ondra Cada <email@hidden>
References: 
 >reusable custom views? (From: David Feldman <email@hidden>)

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