• 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: Nested Components vs Custom View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nested Components vs Custom View


  • Subject: Re: Nested Components vs Custom View
  • From: Daniel Todd Currie <email@hidden>
  • Date: Tue, 2 Nov 2004 03:19:52 -0800

I think what you actually want is a custom cell, if I understand your needs correctly. This should be a relatively simple thing to do, I recommend looking at:

file://Developer/Examples/AppKit/DragNDropOutlineView/ImageAndTextCell.m

This custom cell is composed of an image cell and a text cell; you can make them whatever size you want, and can orient them however you want. You could have it made up of 20 text cells, if you want. This is the basic implementation used in Finder.app for files with icons.

-- DTC


On 2004 Nov 02, at 03:01, Alexander F. Hartner wrote:

I am trying to build a composite controll, like the one used in the
address book to display and capture the address details.

I am contemplating two options:

1.) To construct a controll by nesting various component inside each
other, like one would do using Java Swing. Having a Java back ground this
seems practical, but I don't know how to apply this in cocoa.


2.) To construct a custom view. I think this might be the preferred Cocoa
approach, yet I haven't found any examples of controlls being dynamically
added to a view.


I would really appreciate any suggestion on how this is done using Cocoa.
Any examples, or link to examples, would also be really great.


Thanks
Alex
 _______________________________________________
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



_______________________________________________ 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: Nested Components vs Custom View
      • From: "M. Uli Kusterer" <email@hidden>
References: 
 >Nested Components vs Custom View (From: "Alexander F. Hartner" <email@hidden>)

  • Prev by Date: ObjC runtime debug messages?
  • Next by Date: Re: Nested Components vs Custom View
  • Previous by thread: Nested Components vs Custom View
  • Next by thread: Re: Nested Components vs Custom View
  • Index(es):
    • Date
    • Thread