• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Outline View Loading Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Outline View Loading Data
      • From: Kevin Ballard <email@hidden>
  • Prev by Date: Temporary badging on Files and Folders.What is wrong in the code attached?
  • Next by Date: Re: Outline View Loading Data
  • Previous by thread: Re: Temporary badging on Files and Folders.What is wrong in the code attached?
  • Next by thread: Re: Outline View Loading Data
  • Index(es):
    • Date
    • Thread