• 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
NSAffineTransforms not working as expected?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSAffineTransforms not working as expected?


  • Subject: NSAffineTransforms not working as expected?
  • From: "Mike R. Manzano" <email@hidden>
  • Date: Fri, 25 Feb 2005 17:09:56 -0800

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

- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView




Mike R. Manzano - alephx01 (at) mac (dot) com

"It makes me mad when people say I turned and ran like a scared rabbit. Maybe it was like an angry rabbit, who was running to go fight in another fight, away from the first fight." -- Jack Handey

_______________________________________________
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


  • Follow-Ups:
    • Re: NSAffineTransforms not working as expected?
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Problem with exec and accentuated characters
  • Next by Date: Re: NSAffineTransforms not working as expected?
  • Previous by thread: Re: Problem with exec and accentuated characters
  • Next by thread: Re: NSAffineTransforms not working as expected?
  • Index(es):
    • Date
    • Thread