Re: Source files - subclassing a nstableview
Re: Source files - subclassing a nstableview
- Subject: Re: Source files - subclassing a nstableview
- From: Arne Bech <email@hidden>
- Date: Thu, 23 Mar 2006 15:33:11 -0700
Hi,
I want to have a table updated quite frequently since there is a
column with a kind of timer in it. It changes at the least every
couple of minutes. I have (so far) set up a timer that calls a
updateAll method which again updates the whole table (with -
reloadData). My problem is that if I am edtiting that table at the
time the timer fires the editing of the cell ends. I have set it to
call the delegate to check if someone is updating the table. It works
if I type in the cell, but if i get in "editing mode" without
actually editing it doesnt send the controllertextdidbeginediting.
However I think that can be fixed failry easily by subclassing
nstextviewCell.
But what i really want is the timer column of the table to update
anyway, but without interupting the editing (the row order is the
same). I just saw an example where they used a customview in the
tableview that they could update nevertheless of the rest of the
table. So I might try that. Just sounds like a lot of work for what I
am trying to accomplish...
any other ideas?
Arne
On Mar 23, 2006, at 15:10 , Wain wrote:
Hi,
You will never get to see the .m file, it's just not gonna happen,
but fortunately you don't need to, create your subclass and do your
custom refreshing sometimes and only call super when you want to.
Out of interest, what is wrong with using the standard reload?
Wain
On 23 Mar 2006, at 21:58, Arne Bech wrote:
I want to alter the reloadData process. If I call the super the
original reloadData get excecuted, which I don't want. I was more
looking for the table to just refresh the values for one of the
columns (and refresh the whole table too sometimes which is just
to call super)..
Arne
On Mar 23, 2006, at 1:44 , Mike Abdullah wrote:
um, just do [super reloadData] ?
Mike.
On 23 Mar 2006, at 04:33, Arne Bech wrote:
Hi,
I was thinking of subclassing a nstableview.
Is there any way to get a hold of the nstableview.m file so i
can look at the methods allready there and then copy and modify
them in my subclass.
I particulary had in mind the -reloadData method.
thanks!
Sincerely,
Arne Nikolai Bech
_______________________________________________
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
_______________________________________________
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