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 PROTECTED]> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to