• 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
A Nib Question: Multiple Instantiations of Views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A Nib Question: Multiple Instantiations of Views


  • Subject: A Nib Question: Multiple Instantiations of Views
  • From: The Amazing Llama <email@hidden>
  • Date: Thu, 4 Apr 2002 00:16:26 -0800

I have a .nib in which I define a window, Foo, and an unconnected view, Bar.

Bar has widgets in it, including a button that opens and closes a tray off of Foo and some random text objects.

What I want to do is instantiate multiple copies of Bar, with different text in the text objects, and pop them all into Foo so that all of them appear in a list.

So the basic question is this: how do I
- load a view from the nib so that I get the formatting information,
- programmatically make lots of copies of it
- programmatically change the text, and
- programmatically put them all into the window?

Can I?

-The Amazing Llama <tallama at mac dot com>
"Life is like an exploded clown. It's really funny until you figure out what just happened."
_______________________________________________
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: A Nib Question: Multiple Instantiations of Views
      • From: Greg Titus <email@hidden>
    • Re: A Nib Question: Multiple Instantiations of Views
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: tableview data retrieval
  • Next by Date: Re: More re: Carbon Events vs Cocoa Events
  • Previous by thread: bug in NSButtonCell's subclass?
  • Next by thread: Re: A Nib Question: Multiple Instantiations of Views
  • Index(es):
    • Date
    • Thread