• 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: I have an idea how to handle this, looking for feedback.... Re: NSImageCell Optimization.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I have an idea how to handle this, looking for feedback.... Re: NSImageCell Optimization.


  • Subject: Re: I have an idea how to handle this, looking for feedback.... Re: NSImageCell Optimization.
  • From: Evan Schoenberg <email@hidden>
  • Date: Fri, 21 Jan 2005 02:09:08 -0600

James,

You may want to look at AIImageGridView from the GPL AIUtilities for another possible implementation.

http://svn.adiumx.com/svn/adium/trunk/Frameworks/ AIUtilities Framework/

-Evan

On Jan 21, 2005, at 12:20 AM, James Andrews wrote:

OK,  I went back and did some reading and most of what I read, I
either didn't understand, or just seemed to be far more complicated
than I think it really needs to be.  That said, I am thinking of
trying a different approach  Here's my idea, tell me what you think.

Right now I have an ImageMatrix class which is a subclass of NSMatrix
which is a subview of NSScrollView.

I am thinking programmatically taking control of the scroll views
scroller, and instead of actually the view,

I would take my array of NSImageCells and figure out how many rows I
need to draw. based on the cell size and the view frame size. Then I
would create an array of arrays that are the length of the number of
columns in the calculated matrix.  Using the value of the scroller I
could then decide what images to draw to te screen.  This way instead
of loading 67 images I could be drawing maybe 15 or 20.  Reducing the
overhead by 2/3s.  I was also looking at NSImageRep some, and think
that may help as well, but I need to figure out how it works before I
can say for sure.

James
 _______________________________________________
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


_______________________________________________ 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: 
 >NSImageCell Optimization. (From: James Andrews <email@hidden>)
 >I have an idea how to handle this, looking for feedback.... Re: NSImageCell Optimization. (From: James Andrews <email@hidden>)

  • Prev by Date: Re: Cocoa global hotkey
  • Next by Date: Re: I have an idea how to handle this, looking for feedback.... Re: NSImageCell Optimization.
  • Previous by thread: I have an idea how to handle this, looking for feedback.... Re: NSImageCell Optimization.
  • Next by thread: Re: I have an idea how to handle this, looking for feedback.... Re: NSImageCell Optimization.
  • Index(es):
    • Date
    • Thread