Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Newbie Q : communication problem with NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Q : communication problem with NSTableView



on 5/20/06 11:02 AM, email@hidden purportedly said:

> Now thanks to the debugger I know that arrayForTable behaves correctly,
> but the table
> view does not display the changes.
>
> I tried to put a breakpoint on the crucial line
>
> [tableView reloadData];
>
> but unfortunately the debugger won't ``step into" that instruction, so I'm
> stuck...

I think that the debugger may not step into the call if your tableView is
nil. The way to know is use NSLog() to output assertions, e.g.:
    if( tableView == nil ) NSLog( @"tableView is nil" );

It may also depend on where you are making the call.

Another test is to "trick" the tableview into reloading itself, by scrolling
up/down/left/right (if there are enough rows/columns) or resizing the
window.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

 _______________________________________________
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

References: 
 >Newbie Q : communication problem with NSTableView (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.