Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7019743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:13:30+00:00 2026-05-27T23:13:30+00:00

In my mac application I’m currently developing, I have an iKImageBrowserView which displays something

  • 0

In my mac application I’m currently developing, I have an iKImageBrowserView which displays something like 500/1000 Images.

Turning off image display, memory consumption is very low around 50 MB.
Turning on image display, memory consumption is very high around 500 MB.
Every time I scroll up/down, memory usage is increased.

Here is a snippet of imageBrowser:itemAtIndex :

    ..
    MyBrowserNSImageItem *item = [[MyBrowserNSImageItem alloc] initWithCover:coverImage andId:myFile];
    return [item autorelease];

where coverImage is read from an object cache and it is not initialized every time.

How could I decrease memory usage?

Update: I tried to use imageVersion: from DataSourceProtocol but still high memory usage. If I initializes images but don’t pass them to ikImageBrowserView memory is low.

Other Update: I did another test. Every time I allocate an object of a simple PNG image. And this time memory is low. Problem arises only when I use real images. They are JPG of around 50/100KB. Probably when they are loaded in memory they decompress. How can I reduce memory usage of an NSImage?

Update: Problem is in the quality of JPEG. They consume too much memory when displayed. So question is: HOW to generate memory/quality thumbnail in Cocoa?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:13:31+00:00Added an answer on May 27, 2026 at 11:13 pm

    With the aim of sharing my experience for future readers I found my problem. It was a memory leak in my code. The leak was very trivial in my custom ImageBrowserItem.

    As another optimization I switched from NSImage to NSData representation (it consumes less memory).

    As a last optimization (that I am going to think) is about quality of thumbnails. I am thinking to show different thumb quality according zoom value. What do you think?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using an IKImageBrowserView for a mac application I'm currently developing and wants to
I'm developing a Mac application in Objective-C, and I'd like to store either a
in the Mac application I am currently developing the users will need to be
I am creating a Mac application in which I have mainwindow with some buttons.
I have a Mac application, an NSStatusItem really, in which I'm trying to test
I am developing a mac application that involves audio playback. I would like to
I have a Core Data based mac application that is working perfectly well until
I have an application for Mac OS X that supports plugins that are intended
I'd like to learn how to write application for Mac OS X. Like how
I have a mac application(written with xcode) i have to write a .net application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.