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

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


  • Follow-Ups:
    • Re: Subclassing NSSearchFieldCell
      • From: Stefan Fisk <email@hidden>
References: 
 >Re: Subclassing NSSearchFieldCell (From: Hamish Allan <email@hidden>)
 >Re: Subclassing NSSearchFieldCell (From: Stefan Fisk <email@hidden>)
 >Re: Subclassing NSSearchFieldCell (From: Hamish Allan <email@hidden>)
 >Re: Subclassing NSSearchFieldCell (From: Stefan Fisk <email@hidden>)

  • Prev by Date: Re: Creating folders for writing files to disk
  • Next by Date: Re: Two NSTableViews acting as one
  • Previous by thread: Re: Subclassing NSSearchFieldCell
  • Next by thread: Re: Subclassing NSSearchFieldCell
  • Index(es):
    • Date
    • Thread