• 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: GUI Objects on the fly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUI Objects on the fly


  • Subject: Re: GUI Objects on the fly
  • From: j o a r <email@hidden>
  • Date: Sun, 23 Mar 2003 02:25:48 +0100

While you can do this - I have done it on occasion - it's not trivial. NSTableView, NSMatrix, NSBrowser - all of the collection views in AppKit - is designed to display instances of NSCell, and hence have no idea how to deal with views.
Are you sure that you need a custom view to display the data, and if so, could you re-create it into a custom cell class instead? Remember that the cell needs to comform to NSCopying in order to work properly in the collection view classes. I would recomend agains attempting to use views in place of cells until you feel that you know NSTableView inside and out.

I have thought about posting some sample code on how to use views in a table view, but not actually done it yet.

j o a r

On Sunday, Mar 23, 2003, at 01:34 Europe/Stockholm, Brian Ganninger wrote:

I have a question in a similar vein to the subject of this one so I thought
I'd field it to the list in hopes that someone can easily point me to a
solution.

I've designed a custom view that I'd like to use in a list-style display
(such that it would basically be a tableview with each row being the custom
view) Is there a way to do such a thing? (custom view as a tablerow's
contents) Or is there another solution to creating this (like an NSMatrix)?
(the rows would be created when the app is launched inside a while loop)
_______________________________________________
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: 
 >Re: GUI Objects on the fly (From: Brian Ganninger <email@hidden>)

  • Prev by Date: Re: The best way to hide views
  • Next by Date: Re: The best way to hide views.
  • Previous by thread: Re: GUI Objects on the fly
  • Next by thread: NSTextField problem
  • Index(es):
    • Date
    • Thread