• 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
AffineTransform copying bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AffineTransform copying bug?


  • Subject: AffineTransform copying bug?
  • From: John Timmer <email@hidden>
  • Date: Sat, 12 Jun 2004 20:31:11 -0400

Okay, I may be missing some aspect of ObjC memory management, but I can't
figure out why the following is causing me trouble.

If I do the following:

NSAffineTransform *tempTransform = [[scaleTransform copy] invert];
[tempTransform autorelease];

tempTransform winds up with an invalid address and the program tanks. If,
on the other hand, I do this:

NSAffineTransform *tempTransform = [[scaleTransform copy] autorelease];
[tempTransform invert];

Everything's fine. Is this normal, is it something specific to my machine,
or should I be filing a bug?

Thanks,

JT


_______________________________________________
This mind intentionally left blank
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: AffineTransform copying bug?
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Yet more random number woes!
  • Next by Date: Re: Big Nerd Ranch Experience
  • Previous by thread: RE: Yet more random number woes!
  • Next by thread: Re: AffineTransform copying bug?
  • Index(es):
    • Date
    • Thread