On Fri, Apr 11, 2008 at 8:55 AM, Lorenzo <[EMAIL PROTECTED]> wrote: > I have defined an NSView "info view" on IB. > This view contains several NSTextFields. > Now I want to programmatically create copies of this view and attach them to > the objects on my window. So if on my window I have 10 objects, I should see > the 10 objects, each one having its "info view". Each view reports > information about each object on the screen. > What's the best way to do that?
If you're targeting Leopard, you could always use NSCollectionView - it's perfectly suited for what you're trying to do (so long as the views are of homogenous size). Otherwise, it's easiest to put your view in its own separate nib, then load an instance in each time you need it. http://cocoadevcentral.com/articles/000064.php -- I.S. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]