• 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: NSString category name collision?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString category name collision?


  • Subject: Re: NSString category name collision?
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 26 Jan 2010 18:19:49 -0500
  • Organization: Rogue Research Inc.

On 1/26/10 4:08 PM, email@hidden said:

>The docs say:
>
>A category cannot reliably override methods declared in another category
>of the same class.
>This issue is of particular significance since many of the Cocoa classes
>are implemented using categories.
>A framework-defined method you try to override may itself have been
>implemented in a category, and so which implementation takes precedence
>is not defined.
>
>Is this just one of the things we have to put up with as the price for
>dynamism or can this problem be pre-empted?

Yes.

>I added a name space prefix to my method definition and the exception
>departed.

You can add the following env var to debug these problems btw:
OBJC_PRINT_REPLACED_METHODS.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSString category name collision?
      • From: Greg Parker <email@hidden>
References: 
 >NSString category name collision? (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: simple cocoa browser, 'Invalid parameter not satisfying: aString != nil'
  • Next by Date: Re: NSString category name collision?
  • Previous by thread: Re: NSString category name collision?
  • Next by thread: Re: NSString category name collision?
  • Index(es):
    • Date
    • Thread