Re: Fix Depracated call in Apple Sample Code?
Re: Fix Depracated call in Apple Sample Code?
- Subject: Re: Fix Depracated call in Apple Sample Code?
- From: Jerry Krinock <email@hidden>
- Date: Thu, 02 Feb 2006 11:39:45 -0800
- Thread-topic: Fix Depracated call in Apple Sample Code?
on 06/01/26 16:52, Gregory Weston at email@hidden wrote:
> Jerry Krinock wrote:
>
>> When I compile for 10.4, I get a couple warnings about depracated
>> functions
>> in MoreUNIX.c, used in MoreAuthSample.
>>
>> The API documentation suggests using a different method instead,
>> and it's
>> likely within my capability to fix it.
>>
>> What is the proper way of handling this? Should I fix my copy of
>> MoreUNIX,
>> or file a bug report and live with the warnings hoping that someday
>> Apple
>> will update MoreUNIX.c? Aren't a lot of people using
>> MoreAuthSample? It
>> has not been updated since 2003.
>
> Seems like the obvious answer is to fix the bug and then submit the
> fix as part of the bug report. Any chance that the symbol for which
> you're looking is __NSGetExecutablePath?
No. They are NSIsSymbolNameDefined and NSLookupAndBindSymbol:
MoreUNIX/MoreUNIX.c:211: warning: 'NSIsSymbolNameDefined' is deprecated
(declared at /Developer/SDKs/MacOSX10.4u.sdk/usr/include/mach-o/dyld.h:150)
MoreUNIX/MoreUNIX.c:212: warning: 'NSLookupAndBindSymbol' is deprecated
(declared at /Developer/SDKs/MacOSX10.4u.sdk/usr/include/mach-o/dyld.h:158)
_______________________________________________
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