• 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
Efficient use of NSOutlineview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Efficient use of NSOutlineview


  • Subject: Efficient use of NSOutlineview
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Sat, 28 May 2005 22:00:34 +0100


Let's say that I'm doing something similar in design, to a file browser, with an outline view. Basically, there may be a large number of hierarchical data, which may be more than I want to store in the RAM.


The outlineview, being datasource driven, is a great design for this.

However, I don't really get a great feedback on when to release my nodes. Let's say that I create on demand, some nodes to return from outlineView:child:ofItem: . Now, the RAM required by my app, has risen. However, the RAM required to display what is on screen might not have risen, as the size of an outlineview is finite (and won't display too many rows at once).

So, then I must need some kind of way to release nodes that are not in use by the outlineview.

So how do I make sure my RAM doesn't bloat?

Is the only solution to periodically call [outlineView reloadData]; (and previously release all my node data)?

--
http://elfdata.com/plugin/ Industrial strength string processing, made easy.


"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
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


  • Prev by Date: Re: NSNumber is completely broken
  • Next by Date: Re: NSMutableArray with NSMutableDictionaries
  • Previous by thread: Re: NSMutableArray with NSMutableDictionaries
  • Next by thread: Core Data and Java - anyone?
  • Index(es):
    • Date
    • Thread