Subclassing NSSearchFieldCell
Subclassing NSSearchFieldCell
- Subject: Subclassing NSSearchFieldCell
- From: Stefan Fisk <email@hidden>
- Date: Wed, 2 Nov 2005 16:14:38 +0100
And, once again, I'm back with more despair.
I've created a subclass of NSSearchFieldCell,
AnimatedSearchFieldCell, that adds support for animating the search
button. Accompanying it I've made a NSSearchField subclass called,
you guessed it, AnimatedSearchField. AnimatedSearchField only
implements +cellClass, and return [AnimatedSearchFieldCell class].
It all works fine when i initialize an AnimatedSearchField from code,
but when i put one in a nib by changing a NSSearchField's class it
doesn't create a AnimatedSearchFieldCell, but instead a
NSSearchFieldCell. +[AnimatedSearchField cellClass] is being called
several times while the nib loads.
I browsed the docs for an hour now, but from what i can gather
overriding +cellClass should be enough.
Any help on the subject would be deeply appreciated, I want my
animated search field =)
Best Regards
Stefan Fisk
_______________________________________________
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