• 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 strings to an NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing strings to an NSView


  • Subject: Re: Drawing strings to an NSView
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Tue, 23 Sep 2003 20:13:34 +0100

On Tuesday, September 23, 2003, at 01:33 pm, Peter Fischer wrote:

Hello -
I'm currently drawing a string straight on to an NSView using an NSAttributedString / Additions using either the drawAtPoint or drawInRect selectors. This is working fine, but I'm looking to add a drop shadow to the strings being drawn to the NSView. For example, I'm looking for pretty much the exact same effect that Apple uses in the Dock, i.e. white text with a drop shadow. Is there a way to set this up in the NSAttributed string, or, is there a different way to set up the NSView to display a drop shadow, etc... Any help on this would be greatly appreciated.

The drop shadow effect doesn't have a documented interface in Jaguar, although you can use undocumented Core Graphics functions to implement one. See

http://cocoadevcentral.com/articles/000053.php

for more information. This interface may have changed or may not exist in Panther... if you have ADC-TV access, you might like to check the graphics-related sessions for further information.

Kind regards,

Alastair.
_______________________________________________
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 strings to an NSView (From: Peter Fischer <email@hidden>)

  • Prev by Date: Exporting an NSDocument in a different file format
  • Next by Date: Re: NSResponder
  • Previous by thread: Drawing strings to an NSView
  • Next by thread: Re: NSResponder
  • Index(es):
    • Date
    • Thread