• 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
Newbie (EXE_BAD_ACCESS?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Newbie (EXE_BAD_ACCESS?)
      • From: Mark Eaton <email@hidden>
    • Re: Newbie (EXE_BAD_ACCESS?)
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: object instance names generated on the fly?
  • Next by Date: Re: object instance names generated on the fly?
  • Previous by thread: Re: AECreateAppleEvent
  • Next by thread: Re: Newbie (EXE_BAD_ACCESS?)
  • Index(es):
    • Date
    • Thread