• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: email@hidden
  • Date: Sun, 28 Apr 2002 14:15:04 +0200

On dimanche, avril 28, 2002, at 01:19 , nicolas berloquin wrote:

Hi !

I'm new to the list and to cocoa. I've searched the archives but I didn't find anything relevant to my question, sooo here it goes:
I'm trying to do something that I thought would be really common with IB and cocoa:
I'd like to create an NSView or a custom view in IB, then, inside my code, "import" the view then insert it as a subview of some
other IB created view.
The IB FAQ says that one simply has to create a socket somewhere accessible and connect it to this view, but what if I need
multiple instances of this view ? (I'm planning to insert it many times in a scrollerview, or inside a matrix).

Isn't it an Outlet instead of a socket?

How does one clone a complete view hierarchy, then ?

I'm sure this is a very common task, could someone please forward me some pointers/snippets ?

I'm not sure to understand what you want to do.

What you can do is create a custom view. Add an Outlet to your Controller. Link this controller outlet to the Custom View and now you have a pointer to your view in the code.

Is this what you want to do?

PS I've been quite disappointed with the lack of sample code/technote/task description given with cocoa, the ref manual is good,
but we lack help for common uses... (or am I the only one to complain ? ;-) )

You're not a poor lonesome developper on this one.
_______________________________________________
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.

References: 
 >(no subject) (From: nicolas berloquin <email@hidden>)

  • Prev by Date: Re:C'mon Apple! DECIDE!
  • Next by Date: Re: saving NSSplitView sub-frame positions
  • Previous by thread: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread