• 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: "Theodore H. Smith" <email@hidden>
  • Date: Tue, 28 Jun 2005 13:35:50 +0100


On 28 Jun 2005, at 12:49, Pandaa wrote:


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.

Well, subclassing avoids hacking. Swizzling is a pretty serious hack. So I've decided to subclass, instead.


--
http://elfdata.com/plugin/ Industrial strength string processing, made easy.


"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
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


References: 
 >Replacing a method via categorys (From: "Theodore H. Smith" <email@hidden>)
 >Re: Replacing a method via categorys (From: Pandaa <email@hidden>)

  • Prev by Date: Re: Applescript help Looks urgent
  • Next by Date: Re: NSApp with CLI access
  • Previous by thread: Re: Replacing a method via categorys
  • Next by thread: Predicate on two values
  • Index(es):
    • Date
    • Thread