• 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: Fix Depracated call in Apple Sample Code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Fix Depracated call in Apple Sample Code?
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Cocoa Text System and Attributed Strings
  • Next by Date: Re: Converting error codes to readable strings?
  • Previous by thread: Re: Cocoa Text System and Attributed Strings
  • Next by thread: Re: Fix Depracated call in Apple Sample Code?
  • Index(es):
    • Date
    • Thread