Newbie (EXE_BAD_ACCESS?)
Newbie (EXE_BAD_ACCESS?)
- Subject: Newbie (EXE_BAD_ACCESS?)
- From: Bernard Banks <email@hidden>
- Date: Sat, 22 Mar 2003 08:51:09 -0800
I have a program that draws on NSView myView with drawRect. I am trying to
include a toy subroutine to draw a line in myView by using a class method
+(void)drawLine:(float)X:(float)Y defined in the subclass Line.h and Line.m
of NSObj. In drawRect I make the call [Line drawLine:100.0:100.0]. In
compiling, I get two warnings, 1) invalid receiver type 'void (short
int,short int)', and 2) passing arg 1 of pointer to function from
incompatible pointer type.
Under debug, the program chokes at [Line drawLine:100.0:100.0] and gives me
the EXE_BAD_ACCESS error. If this line is left out the program runs with no
problem.
Thanks in advance from a very naove beginner,
Bernard Banks
_______________________________________________
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.