• 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: CustomView Help ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CustomView Help ...


  • Subject: Re: CustomView Help ...
  • From: "Kyle Sluder" <email@hidden>
  • Date: Fri, 14 Mar 2008 07:04:13 -0400

On 14 Mar 2008 10:57:42 +0000,  <email@hidden> wrote:
> Hi,
>
>  I have implemented a custom view with drag and drop capability. When the
>  viwe is idle, the background is a subtle gray gradient, and when files are
>  being dragged over it turns to a nice blue gradient. I do this in drawRect
>  using a BOOL variable which gets updated in each of the drag operation
>  methods.

Can't you draw your string in either gray or white depending on this
flag?  I trust you're using the NSString drawing AppKit extensions,
not an NSTextField subview.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: CustomView Help ...
      • From: Mic Pringle <email@hidden>
References: 
 >CustomView Help ... (From: email@hidden)

  • Prev by Date: CustomView Help ...
  • Next by Date: Re: CustomView Help ...
  • Previous by thread: CustomView Help ...
  • Next by thread: Re: CustomView Help ...
  • Index(es):
    • Date
    • Thread