Re: NSTableView works in 10.5 but not in 10.4

2008-09-12 Thread Corbin Dunn
I still recommend the same steps to diagnose the problem: After your model has changed (ie: in awakeFromNib, or wherever you initialize things), call -reloadData. You can test this out by adding a breakpoint in Xcode on [NSTableView reloadData]. Have it print the bt, and see when it is call

Re: NSTableView works in 10.5 but not in 10.4

2008-09-12 Thread Ellen Chou
Hi all, I have the similar problem in 10.4.x with another modaled dialog window that only contains NSOutlineView table with 3 columns data. I'm pretty sure reloadData is called. This modaled dialog shows the contents correctly in 10.5.2. Is there a call to refresh the display for the modaled dia

Re: NSTableView works in 10.5 but not in 10.4

2008-09-09 Thread Ellen Chou
Thanks, reloadData resolve the problem with 10.4.8. - Ellen On Mon, Sep 8, 2008 at 3:20 PM, Corbin Dunn <[EMAIL PROTECTED]> wrote: > > On Sep 8, 2008, at 2:36 PM, Ellen Chou wrote: > > Hi Stephane, >> >> Indeed, reloadData is not called at all. But why can it work fine in >> 10.5.2? >> >> When

Re: NSTableView works in 10.5 but not in 10.4

2008-09-08 Thread Corbin Dunn
On Sep 8, 2008, at 2:36 PM, Ellen Chou wrote: Hi Stephane, Indeed, reloadData is not called at all. But why can it work fine in 10.5.2? When and where I should call reloadData? That's easy; after you change your model. When do you initialize your arrays, etc? After that point, call relo

Re: NSTableView works in 10.5 but not in 10.4

2008-09-08 Thread Ellen Chou
Hi Stephane, Indeed, reloadData is not called at all. But why can it work fine in 10.5.2? When and where I should call reloadData? Thanks, Ellen On Mon, Sep 8, 2008 at 9:52 AM, Stéphane Sudre <[EMAIL PROTECTED]> wrote: > > On Sep 8, 2008, at 12:58 PM, Ellen Chou wrote: > > I have a tree view

Re: NSTableView works in 10.5 but not in 10.4

2008-09-08 Thread Stéphane Sudre
On Sep 8, 2008, at 12:58 PM, Ellen Chou wrote: I have a tree view window that uses NSTableView and NSOutlineView lists out all the sub folders under user's home directory. For some reason, this window shows the folder contents correctly in Mac OS 10.5.2, but not in Mac OS 10.4.x running o

NSTableView works in 10.5 but not in 10.4

2008-09-08 Thread Ellen Chou
I have a tree view window that uses NSTableView and NSOutlineView lists out all the sub folders under user's home directory. For some reason, this window shows the folder contents correctly in Mac OS 10.5.2, but not in Mac OS 10.4.x running on iMac which is PowerPC host running on Intel Duel Core