• 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: Retrieving the current -[NSShadow set]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieving the current -[NSShadow set]


  • Subject: Re: Retrieving the current -[NSShadow set]
  • From: David Duncan <email@hidden>
  • Date: Fri, 25 Jul 2008 16:07:30 -0700

On Jul 25, 2008, at 3:59 PM, Keith Duncan wrote:

That's actually the original question. How does one do this?


You don't. If I were doing this, I would simply pass the shadow parameters into the function (and create conveniences for myself if I were so inclined).

The ability for NSShadow to provide you with its shadow parameters is in part due to its implementation, as it needs to retain these values in order to implement -set. From the Quartz side of things, -set effectively equates to a call to CGContextSetShadowWithColor() which sets all of these parameters at once. But there is no method to retrieve these parameters from either the NSGraphicsContext or underlying CGContextRef.
--
David Duncan
Apple DTS Animation and Printing
email@hidden




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Retrieving the current -[NSShadow set] (From: Keith Duncan <email@hidden>)
 >Re: Retrieving the current -[NSShadow set] (From: Graham Cox <email@hidden>)
 >Re: Retrieving the current -[NSShadow set] (From: Keith Duncan <email@hidden>)
 >Re: Retrieving the current -[NSShadow set] (From: "Michael Ash" <email@hidden>)
 >Re: Retrieving the current -[NSShadow set] (From: Keith Duncan <email@hidden>)
 >Re: Retrieving the current -[NSShadow set] (From: "Michael Ash" <email@hidden>)
 >Re: Retrieving the current -[NSShadow set] (From: Keith Duncan <email@hidden>)

  • Prev by Date: Re: Problem drawing multiple parallel lines
  • Next by Date: Re: defer loading window using bundles in XCode 3 Leopard
  • Previous by thread: Re: Retrieving the current -[NSShadow set]
  • Next by thread: Re: Retrieving the current -[NSShadow set]
  • Index(es):
    • Date
    • Thread