Re: NSAffineTransforms not working as expected?
Re: NSAffineTransforms not working as expected?
- Subject: Re: NSAffineTransforms not working as expected?
- From: "Sean McBride" <email@hidden>
- Date: Fri, 25 Feb 2005 21:27:43 -0500
Mike R. Manzano (email@hidden) on 2005-02-25 20:09 said:
>Can anyone tell me why this causes a segfault in my program?
>
> NSAffineTransform* toTimeSpace =
> [ NSAffineTransform transform ] ;
> [ toTimeSpace concat ] ;
> [ [ NSColor blackColor ] set ] ;
> [ [ NSString stringWithString:@"aTime" ]
> drawAtPoint:NSMakePoint(
> cellFrame.origin.x ,
> cellFrame.origin.y )
> withAttributes:attrs ] ;
> [ [ toTimeSpace invert ] concat ] ;
>
>This works fine if I remove the last line. This code is being executed
>in an NSCell's
Probably because invert returns void. Is there no compiler warning? Try:
[toTimeSpace invert];
[toTimeSpace concat];
--
"None are more hopelessly enslaved than those who falsely believe they
are free." - Goethe
_______________________________________________
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