Re: Subclassing NSSearchFieldCell
Re: Subclassing NSSearchFieldCell
- Subject: Re: Subclassing NSSearchFieldCell
- From: Hamish Allan <email@hidden>
- Date: Wed, 2 Nov 2005 20:36:17 +0000
On 2 Nov 2005, at 20:05, Stefan Fisk wrote:
Since the state of the search field is completely stored in the
cell, setting the cell would reset everything, which would make
putting the search field in the nib pointless in this case.
+poseAsClass: didn't work either I soon discovered, as my cell
class adds two instance variables. So now I'm back to completely
initializing the search field in code.
I see. Perhaps creating an IB palette for your AnimatedSearchField
would do the trick?
If all else fails you could try laboriously calling everything
required ([newCell setTarget:[originalCell target]], [newCell
setRecentSearches:[originalCell recentSearches]] etc.) from your
awakeFromNib?
Cheers,
Hamish
_______________________________________________
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