Re: Bad EXC_BAD_INSTRUCTION on drawRect call in Swift

2014-08-25 Thread Greg Parker
On Aug 24, 2014, at 12:44 PM, Fritz Anderson wrote: > On Aug 22, 2014, at 11:25 PM, Peters, Brandon wrote: >> ArnoldTransformer2`@objc ArnoldTransformer2.ATView.drawRect >> (ArnoldTransformer2.ATView)(C.CGRect) -> () at ATView.swift: > > So this is the very end of your drawRect(_:CGRect) method

Re: Bad EXC_BAD_INSTRUCTION on drawRect call in Swift

2014-08-24 Thread Fritz Anderson
[Usual disclaimer about incomplete information.] On Aug 22, 2014, at 11:25 PM, Peters, Brandon wrote: > I am getting this error: > > EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode 0x0) > > over this line of code: > > if self.contentView!.frame.size.width > photo.size.width { >

Bad EXC_BAD_INSTRUCTION on drawRect call in Swift

2014-08-22 Thread Peters, Brandon
Devs, I am getting this error: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode 0x0) over this line of code: if self.contentView!.frame.size.width > photo.size.width { docRect.size.width = self.contentView!.frame.size.width imageLocation.origin.x = (self.c