• 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: Replacing a method via categorys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacing a method via categorys


  • Subject: Re: Replacing a method via categorys
  • From: Pandaa <email@hidden>
  • Date: Tue, 28 Jun 2005 13:49:13 +0200


27 jun 2005 kl. 23.48 skrev Theodore H. Smith:

I'm trying to replace a method in NSCell, via categories.

Instead of swizzling, I suspect that in your case it will be much easier to use a custom sub-class and tell your table view to use that class.


Here I get a compile time error that [super highlight:flag withFrame:cellFrame inView:controlView]; is bad. I'm not sure if it is possible even to call the original method.

There is no highlight:withFrame:inView: method in NSObject, so that is expected.


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. email@hidden . . www.synapticpulse.net .


_______________________________________________
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: Replacing a method via categorys
      • From: "Theodore H. Smith" <email@hidden>
References: 
 >Replacing a method via categorys (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Spotlight and API Docs
  • Next by Date: Re: Applescript help Looks urgent
  • Previous by thread: Re: Replacing a method via categorys
  • Next by thread: Re: Replacing a method via categorys
  • Index(es):
    • Date
    • Thread