• 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
NSView drawing problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView drawing problem


  • Subject: NSView drawing problem
  • From: Thilo Ettelt <email@hidden>
  • Date: Sat, 21 Dec 2002 11:50:22 +0100

Hi, I have a problem with drawing in an NSView. The code loads a NIB file in its -init method and has another method for drawing -draw. The thing loads a custom shaped window. When I call the -draw method from the -init method it will draw something in the NSView (in that window) correctly but when I fire the -draw method from -awakeFromNib it won't work. The method is actually called but it doesn't draw anything or it at least it doesn't display. I am using lockFocus/unlockFocus and then in between -drawAtPoint an image using NSCompositeSourceOver and fraction 1.0 to draw my stuff.

Do you have an idea what could be going wrong here? Thanks in advance.


Cheers, Thilo
_______________________________________________
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: NSView drawing problem
      • From: David Rio Vierra <email@hidden>
  • Prev by Date: Re: Finding Applications for File Type
  • Next by Date: Cocoa is great
  • Previous by thread: Re: Help: Non-wrapping NSTextView
  • Next by thread: Re: NSView drawing problem
  • Index(es):
    • Date
    • Thread