• 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
Subclassing NSSearchFieldCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • Next by Date: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • Previous by thread: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • Next by thread: Re: Subclassing NSSearchFieldCell
  • Index(es):
    • Date
    • Thread