Visual arrays of grouped items (including views)?
Visual arrays of grouped items (including views)?
- Subject: Visual arrays of grouped items (including views)?
- From: "Jeffrey E. Forcier" <email@hidden>
- Date: Thu, 22 Sep 2005 14:38:12 -0400
I apologize for the poorly elucidated subject, I'm not at all sure
how to refer to this issue succinctly.
I want to create a group or control that consists of a subclassed
NSImageView (as per an earlier post to the list; it supports dragging
to and from), some text labels, and possibly other objects. Creating
one or more of these groups manually in Interface Builder is simple.
However, I need to *programmatically* generate them in a list or
matrix of arbitrary size, as the real-world problem driving this is
the display of 1-N image thumbnails and their metadata (actually two
paired lists/columns of such).
Unfortunately, I can't find anything that supports this. Graphical
matrices/tables deal with cells only, AND cells apparently cannot
contain views. However, I need that NSImageView; an image cell will
not suffice (unless I am to add a ton of NSImageView dragging
functionality to a cell, which seems like a bad idea, not to mention
a lot of work).
All I can think of is to use groups of nested views and arrange them
pixel by pixel; I assume this is possible, but I haven't checked the
details yet (been trying to find an alternate solution instead).
However, it's less than ideal, and I assume that having a large
number of views and subviews would be a very inelegant and wasteful
solution. If this is incorrect, please tell me; it's just that I
recall the emphasis being strongly made that cells are cheap and
views expensive.
Google and list archives haven't turned anything up; I asked about
this on irc.freenode.net/#macdev and was told to look into
subclassing NSCell, but as I said earlier, I don't think that will
work with the NSImageView subclass. Reiterating my question a bit
more clearly has resulted in no responses, so I now turn to you folks.
Thanks,
Jeff
--
Jeffrey E. Forcier
Junior Developer, Research and Development
Stroz Friedberg, LLC
15 Maiden Lane, 12th Floor
New York, NY 10038
[main]212-981-6540 [direct]212-981-6546
http://www.strozllc.com
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No right to
confidential or privileged treatment of this message is waived or lost
by any error in transmission. If you have received this message in
error, please immediately notify the sender by e-mail or by telephone at
212.981.6540, delete the message and all copies from your system and
destroy any hard copies. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message if you are
not the intended recipient.
_______________________________________________
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