Re: tables cells and views
Re: tables cells and views
- Subject: Re: tables cells and views
- From: nicolas berloquin <email@hidden>
- Date: Sun, 28 Apr 2002 17:20:39 +0200
Actually it is *very* easy to make a cell which would contain and
display a view (see docs). Though, there generally is no reason to do
so.
please, I'm not asking questions about ethics, but about know how...
let's say I want to show a list of thumnails with a filename, and a
couple of buttons underneath each thumbnail,
could someone tell me if I really can't design one copy of this as a
custom view in a NIB file, then
set it as a cell basis inside a matrix ?
You can, quite easily, see above. I would guess though that such a GUI
would badly need some refactoring -- this sounds like a Web page, not
like a decent Cocoa app. I might be wrong in this of course, since I
haven't seen the whole thing. Though, I would very definitely recommend
first trying a number of other Cocoa apps to decide whether you won't
see a better approach there, like
(see above)
and, yes, I have good reasons to do this, explaining why is off topic.
So your advice is to create a nscell subclass and have its render method
draw an nsview ?
sounds reasonable, it would have been nice if cocoa had let us do this
directly... (are all lists only text or simple images ?)
_______________________________________________
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.