Outline View Loading Data
Outline View Loading Data
- Subject: Outline View Loading Data
- From: Kishore <email@hidden>
- Date: Sat, 6 Nov 2004 14:45:21 +0530
Hi All,
I've have an outline View and a custom View(say View A). Depending on the outline view row I'm displaying views (say a1 a2 a3... etc) on the custom view.
I'm performing some operation after the last row of the outline view has been loaded.
As the outline view loads only the rows which are in the visible Rectangle, I'm not able to update my views (a1, a2.....) and drawing.
Please any body let me know how to solve this. Here is the sample code....
- (void)outlineView:(NSOutlineView *)anOutlineView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)aTableColumn item:(id)item {
if([[aTableColumn identifier] isEqualToString:@"viewName"]) {
id smallView = nil;
smallView = [allSmallViews objectForKey:[item ID]];
[self drawSmallView:smallView atIndex:[anOutlineView rowForItem:item]];
if([outlineView rowForItem:item] == [outlineView numberOfRows]-1) {
//Do some drawing on the View A
}
}
}
Thanks
Kishore
_______________________________________________
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