• 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: Displaying multiple NSView subclasses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying multiple NSView subclasses


  • Subject: Re: Displaying multiple NSView subclasses
  • From: SA Dev <email@hidden>
  • Date: Thu, 14 Jul 2005 16:12:13 -0400

Damien:

Why not use NSTableView? One column can use an NSImageCell, the other can be a title column, the other can be a button (for stop / reload, etc.). Recreating this functionality ('tiling' the views) is a lot of work compared to just learning how to use a table view. Hope this helps.




On Jul 14, 2005, at 3:54 PM, Damien Sorresso wrote:

I'm a little confused on how I can create an NSView subclass as a sort of template for things I want drawn later on. What I'm trying to do is basically akin to what Safari's download manager does: display multiple download objects in a view, each being different.

I started by dragging the CustomView widget to the main IB window and got a custom view. I laid it out like I want (an image well and a couple text fields), but after that I'm stuck on what to do. How do I manipulate and create new instances of the subclass within an NSBox subclass in the code?
--
Damien Sorresso
Macintosh Developer
Computer Infrastructure Support Services
Illinois State University
email@hidden
309.438.5777


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net


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
References: 
 >Displaying multiple NSView subclasses (From: Damien Sorresso <email@hidden>)

  • Prev by Date: Re: C++ thread messaging cocoa thread
  • Next by Date: [REPOSTED] toggle button dim when pushed
  • Previous by thread: Displaying multiple NSView subclasses
  • Next by thread: Re: Displaying multiple NSView subclasses
  • Index(es):
    • Date
    • Thread