• 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
Is this normal (memory allocation)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is this normal (memory allocation)


  • Subject: Is this normal (memory allocation)
  • From: Jesus De Meyer <email@hidden>
  • Date: Thu, 28 Oct 2004 22:12:49 +0200

Hi,

In my app I go through a folder recursively and get the icons of each file which I then put on a menuitem. So basically I just put the folder/item hierachy in a menu structure.

I've found that depending how deep I go through the root folder, the app consumes a lot of memory if I go through a deep hierarchy (over 100 MB). However, when I select a rootfolder that's less deep, the memory consumption is less (around 30 to 40 MB)

To get the icons of the file, I use NSWorkspace iconForFile method, resize the image to 16x16 and put it on an NSMenuItem.

Now, is this behaviour normal, or am I having a nasty memory leak somewhere?

_______________________________________________
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: Is this normal (memory allocation)
      • From: j o a r <email@hidden>
  • Prev by Date: OT: WWDC 2004 DVD Set
  • Next by Date: NSTableView, bindings & undo - "ToDos" example - undo bug
  • Previous by thread: Re: OT: WWDC 2004 DVD Set
  • Next by thread: Re: Is this normal (memory allocation)
  • Index(es):
    • Date
    • Thread