• 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 and writing text in a NSQuickDrawView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawing and writing text in a NSQuickDrawView


  • Subject: Re: drawing and writing text in a NSQuickDrawView
  • From: "Michael Ash" <email@hidden>
  • Date: Fri, 30 Jun 2006 12:39:01 -0400

On 6/29/06, Angelo Chen <email@hidden> wrote:
Hi,

i set a NSCustomView in IB, then set it's custom class
to NSQuickDrawView and linked it to a outlet called
view, I'd like to draw a red background on it, i tried
the following code, but does not work, what I miss
here? thanks.

[[NSColor redColor] set];
NSRectFill([view bounds]);
[view display];

It sounds like you don't know what an NSQuickDrawView is. It's for embedding QuickDraw, Carbon's deprecated drawing technology brought over from the classic Mac OS, in the Cocoa view system. If you aren't using QuickDraw then you have no reason to use this view.

If you *do* need to use this view, then you need to actually use
QuickDraw to draw in it, rather than Cocoa drawing. How to fill a view
with red using QuickDraw is beyond the scope of this list.

Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >drawing and writing text in a NSQuickDrawView (From: Angelo Chen <email@hidden>)

  • Prev by Date: Re: Clearing the key event
  • Next by Date: Re: Single selection and bindings
  • Previous by thread: drawing and writing text in a NSQuickDrawView
  • Next by thread: BinHex for PPC and Intel
  • Index(es):
    • Date
    • Thread