Re: Updating NSTableView

2009-05-14 Thread Corbin Dunn
You are welcome to log a bug report requesting a sample. Please detail the things you would like to see in it. These are also the types of things we could cover at a WWDC event. I will be giving an advanced table view talk: "Presenting User Data with Table Views and Browsers" http://develop

Re: Updating NSTableView

2009-05-14 Thread Todd Freese
If anyone has a tutorial or sample code for this it would be greatly appreciated! This issues comes up from time to time and there is not a lot sample code out there for it. Most of the posts are conceptual rather than examples. Todd On May 14, 2009, at 10:14 AM, Corbin Dunn wrote: On

Re: Updating NSTableView

2009-05-14 Thread Corbin Dunn
On May 14, 2009, at 7:49 AM, I. Savant wrote: On Thu, May 14, 2009 at 10:41 AM, Scott Ribe > wrote: First a fast way to read the data off disk to begin with, for start up time. Then caching of row heights when they are calculated. Finally binary search of row heights/positions whe

Re: Updating NSTableView

2009-05-14 Thread I. Savant
On Thu, May 14, 2009 at 10:41 AM, Scott Ribe wrote: > > First a fast way to read the data off disk to begin with, for start up time. > Then caching of row heights when they are calculated. Finally binary search > of row heights/positions when mapping coordinates to row indexes. > > Of course depe

Re: Updating NSTableView

2009-05-14 Thread Scott Ribe
> [ Intrigued ] ... that being? First a fast way to read the data off disk to begin with, for start up time. Then caching of row heights when they are calculated. Finally binary search of row heights/positions when mapping coordinates to row indexes. Of course depending on what calculations are t

Re: Updating NSTableView

2009-05-14 Thread I. Savant
On Thu, May 14, 2009 at 10:34 AM, Scott Ribe wrote: >>   ... well, unless you have variable-height rows. Then (potentially >> complex) calculations have to be done to determine those cells that do >> need to be drawn. >> >>   Corbin? Do I have this right? > > Well yes. Although that can be solved

Re: Updating NSTableView

2009-05-14 Thread Scott Ribe
> ... well, unless you have variable-height rows. Then (potentially > complex) calculations have to be done to determine those cells that do > need to be drawn. > > Corbin? Do I have this right? Well yes. Although that can be solved with the right underlying model... -- Scott Ribe scott_r..

Re: Updating NSTableView

2009-05-14 Thread I. Savant
On Thu, May 14, 2009 at 10:24 AM, Scott Ribe wrote: >> Actually I have big DB, so for a single change it will take lot of time to >> get >> reflected > > NSTableView only fetches data for rows as they are displayed, so it should > not take a long time to redraw. ... well, unless you have varia

Re: Updating NSTableView

2009-05-14 Thread Scott Ribe
> Actually I have big DB, so for a single change it will take lot of time to get > reflected NSTableView only fetches data for rows as they are displayed, so it should not take a long time to redraw. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice

Re: Updating NSTableView

2009-05-13 Thread Michael Ash
On Wed, May 13, 2009 at 9:51 AM, I. Savant wrote: > On Wed, May 13, 2009 at 9:43 AM, Michael Ash wrote: > >>>  That would be difficult, hacky, and wrong. Why do you feel you need >>> to do this? What are you trying to accomplish? >> >> Actually it's trivial, correct, and documented. From the docs

Re: Updating NSTableView

2009-05-13 Thread I. Savant
On Wed, May 13, 2009 at 9:43 AM, Michael Ash wrote: >>  That would be difficult, hacky, and wrong. Why do you feel you need >> to do this? What are you trying to accomplish? > > Actually it's trivial, correct, and documented. From the docs for > frameOfCellAtColumn:row: > > You can use this metho

Re: Updating NSTableView

2009-05-13 Thread Michael Ash
On Wed, May 13, 2009 at 9:19 AM, I. Savant wrote: > On Wed, May 13, 2009 at 8:15 AM, Sourabh Sahu > wrote: >> Hi Everyone, >> I want to reflect changes in cell of NSTableView without calling reloadData >> function, any help would be appreciated. > >  That would be difficult, hacky, and wrong. Wh

RE: Updating NSTableView

2009-05-13 Thread Sourabh Sahu
hu Cc: cocoa-dev@lists.apple.com Subject: Re: Updating NSTableView On Wed, May 13, 2009 at 8:15 AM, Sourabh Sahu wrote: > Hi Everyone, > I want to reflect changes in cell of NSTableView without calling reloadData > function, any help would be appreciated. That would be difficult, hacky,

Re: Updating NSTableView

2009-05-13 Thread I. Savant
On Wed, May 13, 2009 at 8:15 AM, Sourabh Sahu wrote: > Hi Everyone, > I want to reflect changes in cell of NSTableView without calling reloadData > function, any help would be appreciated. That would be difficult, hacky, and wrong. Why do you feel you need to do this? What are you trying to ac

Updating NSTableView

2009-05-13 Thread Sourabh Sahu
Hi Everyone, I want to reflect changes in cell of NSTableView without calling reloadData function, any help would be appreciated. Thanks & Regards, Sourabh DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is