Re: +underPageBackgroundColor
Re: +underPageBackgroundColor
- Subject: Re: +underPageBackgroundColor
- From: Mike Abdullah <email@hidden>
- Date: Tue, 07 Aug 2012 17:09:28 +0100
On 7 Aug 2012, at 15:31, Sean McBride <email@hidden> wrote:
> On Tue, 7 Aug 2012 08:38:12 +1000, Graham Cox said:
>
>> I have a category on NSColor that defines all the "named" SVG colours,
>> and there's one called 'linenColor'. In 10.8, there appears to be a
>> private method called +linenColor which is invoked by
>> +underPageBackgroundColor, so it calls my SVG method and I get my sRGB
>> "chino" colour. Removing that method it now works as expected.
>
> Aren't Apple-private methods supposed to start with underscore, to avoid exactly this problem?
Yes, and devs are also supposed to prefix their own methods to avoid exactly this problem.
>
> Also, it sure would be nice for us 3rd party devs to be able to have OBJC_PRINT_REPLACED_METHODS 'on' all the time, but it's noisy, complaining about various Apple methods that replace each other.
> <rdar://7583845>
_______________________________________________
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