• 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: NSImageView frames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView frames


  • Subject: Re: NSImageView frames
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sat, 27 Dec 2003 20:13:40 +0100

At 5:31 Uhr -0500 27.12.2003, Devon E Bowen wrote:
Anyway, everything looks great in IB. But when I run the app, the frame
disappears. In my drawRect method I am doing:

[checkers compositeToPoint:NSMakePoint(8,8) operation:NSCompositeCopy];

Why are you overriding drawRect in an NSImageView? NSImageView's drawRect: takes care of all drawing automatically. It draws the border *and* the image of the view. All you do is call setImage: to give it the image you're drawing.

If you're overriding drawRect: in your own NSImageView subclass, it's no surprise that NSImageView's drawRect: method isn't called and you don't get your frame.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: 
 >NSImageView frames (From: Devon E Bowen <email@hidden>)

  • Prev by Date: Re: Switching NSBox out?
  • Next by Date: Polished NSTextView
  • Previous by thread: Re: NSImageView frames
  • Next by thread: Re: NSImageView frames
  • Index(es):
    • Date
    • Thread