• 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
Re: Drawing onto NSImageView subclass (Newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing onto NSImageView subclass (Newbie)


  • Subject: Re: Drawing onto NSImageView subclass (Newbie)
  • From: Andreas Mayer <email@hidden>
  • Date: Sun, 8 Feb 2004 07:31:22 +0100

Am 08.02.2004 um 04:53 schrieb Alan Cook:

I have
a method addPoint: which is called during the mouseDown: method. I
have that working correctly. The addPoint method is called, and when
the image does not fill the entire view, the dot shows.

You are not doing the actual drawing from inside your addPoint: method, do you?

As Glen already pointed out, drawing is done in drawRect: - and _only_ there.

In addPoint: you should merely alter your model.


bye. Andreas.
_______________________________________________
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.

References: 
 >Drawing onto NSImageView subclass (Newbie) (From: Alan Cook <email@hidden>)

  • Prev by Date: Re: Sending and receiving files to remote server through cocoa
  • Next by Date: Re: Clarification: What is exatly drawing inside a thread
  • Previous by thread: Re: Drawing onto NSImageView subclass (Newbie)
  • Next by thread: Re: Drawing onto NSImageView subclass (Newbie)
  • Index(es):
    • Date
    • Thread