Re: Silly question on extending NSObject.
Re: Silly question on extending NSObject.
- Subject: Re: Silly question on extending NSObject.
- From: Rob Petrovec <email@hidden>
- Date: Tue, 19 Feb 2019 14:37:03 -0700
Why not use/override -description or -debugDescription instead of re-inventing
the wheel?
—Rob
> On Feb 19, 2019, at 2:23 PM, Alex Zavatone <email@hidden> wrote:
>
> Sorry. Second try.
>
> In most Objective-C projects I add an autodescribe category on NSObject and
> put the import for the category header into a .pch for the project so that it
> will be available for every class in the project.
>
> This lets me dump an object’s properties and values at Will in the debugger.
>
> Is there a more modern way to do this than using a .pch?
>
> I’ll also be adding one for Swift and am interested in approaches for both.
>
> Put the import in Settings.xcconfig files?
>
> Thanks in advance
>
> Sent from my iPhone
>
>> On Feb 19, 2019, at 3:15 PM, Alex Zavatone <email@hidden> wrote:
>>
>> In most Objective-C projects I add an autodescribe category and put the
>
> _______________________________________________
>
> 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
_______________________________________________
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