• 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: Overriding Methods via Category Now A no-no?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding Methods via Category Now A no-no?


  • Subject: Re: Overriding Methods via Category Now A no-no?
  • From: "T.J. Usiyan" <email@hidden>
  • Date: Mon, 26 Mar 2012 20:30:46 -0400

I think that was always frowned upon. Method Swizzling was the way to go because overwriting in a category obscures the original implementation.

TJ

On Mon, Mar 26, 2012 at 7:11 PM, Jens Alfke <email@hidden> wrote:

On Mar 26, 2012, at 3:40 PM, Keary Suska wrote:

Clang now complains with, "Category is implementing a method which will also be implemented by its primary class", but I understood that overriding methods via category was perfectly fine although with some drawbacks.

Yikes, where did the docs say that? I’ve always assumed it was unsupported/disallowed.

—Jens


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Overriding Methods via Category Now A no-no? (From: Keary Suska <email@hidden>)
 >Re: Overriding Methods via Category Now A no-no? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: upgrading to Xcode 4.3.1
  • Next by Date: Re: Overriding Methods via Category Now A no-no?
  • Previous by thread: Re: Overriding Methods via Category Now A no-no?
  • Next by thread: Re: Overriding Methods via Category Now A no-no?
  • Index(es):
    • Date
    • Thread