• 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
CIImage drawAtPoint: ...... retains image??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CIImage drawAtPoint: ...... retains image??


  • Subject: CIImage drawAtPoint: ...... retains image??
  • From: Nik Youdale <email@hidden>
  • Date: Sat, 15 Dec 2007 18:10:41 +1100

I'm trying to draw a CIImage in a view, but have come across the following problem:

CIImage *drawImage;
.......
NSLog(@"draw image retain count: %d", [drawImage retainCount]);
[drawImage drawAtPoint:drawPoint fromRect:drawRect operation:NSCompositeSourceOver fraction:1.0];
NSLog(@"draw image retain count: %d", [drawImage retainCount]);


NSLog output:
draw image retain count: 1
draw image retain count: 2

after the drawing operation, the retain count of the image is 1 greater than before the drawing call. From what I understand about memory management... that shouldn't happen?? This is causing massive leaks in my program.

Any ideas?

Cheers
Nik


_______________________________________________

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: CIImage drawAtPoint: ...... retains image??
      • From: Chris Blackburn <email@hidden>
    • Re: CIImage drawAtPoint: ...... retains image??
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: -setNeedsDisplay: different between Tiger and Leopard
  • Next by Date: Re: CIImage drawAtPoint: ...... retains image??
  • Previous by thread: Re: Doesn't -willChangeValueForKey: copy the value before I change it?
  • Next by thread: Re: CIImage drawAtPoint: ...... retains image??
  • Index(es):
    • Date
    • Thread