NSOutlineView reloadData
NSOutlineView reloadData
- Subject: NSOutlineView reloadData
- From: Agent M <email@hidden>
- Date: Mon, 22 Nov 2004 20:26:59 -0500
The outline view data source gets a nil item in
- (id)outlineView:(NSOutlineView *)outlineView child:(int)index
ofItem:(id)item
However,
-(void)reloadItem:(id)item reloadChildren:(BOOL)reloadChildren
won't take nil to refresh the root items. (It raises and exception.)
Instead, I have to call the expensive reloadData method inherited from
NSTableView or loop over all my root items.
Firstly, is this correct? Why does this make sense? Should I file a bug
report?
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
AgentM
email@hidden
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
_______________________________________________
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