Re: Problem in populating the cells with Images on a one by one basis
Re: Problem in populating the cells with Images on a one by one basis
- Subject: Re: Problem in populating the cells with Images on a one by one basis
- From: Ben Dougall <email@hidden>
- Date: Thu, 3 Jul 2003 23:55:38 +0100
seeing as sod all people have answered this :) i'll have a, probably
totally inept, stab at it from what little i know:
you need to set up a helper object - this is a separate object that
holds the information, and has the appropriate and connecting methods
to and from the nsmatrix object. so the nsmatrix is simply made aware
of the helper object and the helper objects is given the ability to
respond to the nsmatrix, and the nsmatrix object asks its helper object
for needed information as and when needed. so the upshot of this is
that you take a fairly passive role - you do not need to dictate
explicitly when and where things should go, in complete detail. you
just need to kind of set the situation up, and leave the objects to get
on with it, and sort the details out themselves.
technically how to do that, i'm not a 100% sure right now, but i don't
think it's too hard.
On Thursday, July 3, 2003, at 03:11 pm, Poornima Ranganath wrote:
Hi All:
I have a matrix of NSButtonCells in a NSSCrollView.
These button cells are generated dynamically in one
class & must be associated with images whose
information is held by a function in ANOTHER class.
This function holds info of only ONE image at any
given point of time[This function too gets teh image
info dynamically].
These cells are associated with images only after the
COMPLETE generation of the matrix is done.
I need to populate the matrix cell by cell, how do i
do this?
that is to say, A matrix with cells is available to
me.Now i need to start populating from Cell 1 to Cell
n.
The first image will get populated in the first
cell,now i go back to the other functionin the other
class and get the NEXT image information. after
getting the information i need to get back to MATRIX
class and populate CELL 2. how will i do this? HOW DO
I KNOW WHICH CELL TO FILL UP NEXT??
can anyone pls help me??
Thanks for all your valuable time.
Rgds,
Poornima
_______________________________________________
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.
_______________________________________________
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.