• 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: cut strech new Bitmap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cut strech new Bitmap


  • Subject: Re: cut strech new Bitmap
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 4 Dec 2007 14:55:28 +0000

On 4 Dec 2007, at 14:47, email@hidden wrote:

yep the code performs up to 50 times faster compared to my initial attempt.
Also it was a great way of starting to get familiar with the API.


Memory question to the code in previous post.
The newly created NSBitmapImageRep is autorelease. Therefore it looks like all memory management requirements are take care of.

Unless I made a mistake, yes, I think that's correct. However:

1. If you want to keep one of the generated NSBitmapImageRep objects after you've finished processing the current event, you should -retain it and then -release it when you're done.

2. If you are calling this method in a loop, you *might* need to think about creating your own autorelease pool and periodically emptying it; otherwise you'll continue to use-up memory during the loop and it will only be released when you get back to the application's run loop.

The app idea I am playing with has really simple requirements. The letters are machine written, however the since can vary a little bit. And for simplicity the rows are perfectly aligned. My intention was to check out the built in streching/schrinking to start with.

Sure.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: cut strech new Bitmap
      • From: email@hidden
References: 
 >cut strech new Bitmap (From: email@hidden)
 >Re: cut strech new Bitmap (From: Alastair Houghton <email@hidden>)
 >Re: cut strech new Bitmap (From: email@hidden)

  • Prev by Date: Re: Unable to set bold font in Chinese language
  • Next by Date: Re: Problematic NSTask issue
  • Previous by thread: Re: cut strech new Bitmap
  • Next by thread: Re: cut strech new Bitmap
  • Index(es):
    • Date
    • Thread