• 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
Re: Outline View Loading Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Outline View Loading Data


  • Subject: Re: Outline View Loading Data
  • From: Kevin Ballard <email@hidden>
  • Date: Sat, 6 Nov 2004 04:31:43 -0500

It sounds like you have the design wrong, since what you ask should not be necessary under any circumstances I can think of.

What is the goal you're trying to achieve here? Describing what it is you want to do may help produce a better mechanism for doing it.

On Nov 6, 2004, at 4:15 AM, Kishore wrote:

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
		}
	}
}

-- Kevin Ballard email@hidden http://www.tildesoft.com http://kevin.sb.org

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Outline View Loading Data (From: Kishore <email@hidden>)

  • Prev by Date: Outline View Loading Data
  • Next by Date: Re: Book about creating Cocoa widgets
  • Previous by thread: Outline View Loading Data
  • Next by thread: Outline View Loading Data
  • Index(es):
    • Date
    • Thread