Re: NSTableView works in 10.5 but not in 10.4
Re: NSTableView works in 10.5 but not in 10.4
- Subject: Re: NSTableView works in 10.5 but not in 10.4
- From: Corbin Dunn <email@hidden>
- Date: Fri, 12 Sep 2008 15:19:09 -0700
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 called. You
might be surprised that it isn't when you expect, or it is before your
model is initialized.
corbin
On Sep 12, 2008, at 3:06 PM, Ellen Chou wrote:
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 dialog window?
Any idea?
Thanks,
Ellen
On Tue, Sep 9, 2008 at 1:53 PM, Ellen Chou <email@hidden>
wrote:
Thanks,
reloadData resolve the problem with 10.4.8.
- Ellen
On Mon, Sep 8, 2008 at 3:20 PM, Corbin Dunn <email@hidden> 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 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 reloadData. Possibly in -
awakeFromNib.
If it is working by chance on Leopard, then it is probably because
of some ordering issue that changed slightly.
corbin
Thanks,
Ellen
On Mon, Sep 8, 2008 at 9:52 AM, Stéphane Sudre <email@hidden>
wrote:
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 on iMac which is PowerPC host running on Intel
Duel Core
CPUs.
It seems to me the Notification/Event was not functioning properly
in Mac
OS
10.4.x iMac. I don't get a chance to run on MacBook 10.4.x. If any
one
has
MacBook Intel CPU running 10.4.x, please let me know.
Anyone run into the similar problem?
Are you referring to a specific sample code?
Which notification/event are you referring to?
When there's a display strangeness in NSTableView/NSOutlineView, the
first
thing to check is that reloadData is called before at least once.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden