CustomView Help ...
CustomView Help ...
- Subject: CustomView Help ...
- From: email@hidden
- Date: 14 Mar 2008 10:57:42 +0000
- Authenticated-sender:
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.
Now, I also have a label on the custom view, instructing the user that this
is where to drop their files (anyone familiar with AppZapper?). The font is
currently just a dark gray color.
What I would like is to have the label's font color change to white
whenever the custom view changes to blue. And this is where I'm stuck ? I
cannot think which is the best way to go about linking the two up. Do I use
a custom binding exposed by the view, if so how, because all the doc's I've
come across seem to show how to bind the view to something, rather than
binding something to the view ? Or do I use notifications, posted by the
view and recieved by the appcontroller, then update the color using an
outlet ? Or is there another way thay I've totally missed ?
(By the way, I'm still learning Cocoa, so be kind :-) )
All help on this will be greatly appreciated.
Thanks
-Mic
_______________________________________________
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