• 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: Warning message using stringWithContentsOfFile:encoding:error:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning message using stringWithContentsOfFile:encoding:error:


  • Subject: Re: Warning message using stringWithContentsOfFile:encoding:error:
  • From: Lee Ann Rucker <email@hidden>
  • Date: Mon, 29 Oct 2012 12:46:59 -0700

On Oct 28, 2012, at 11:03 AM, Quincey Morris wrote:

> On Oct 28, 2012, at 10:37 , Kyle Sluder <email@hidden> wrote:
>
>> No matter what you do, file a bug with the 3rd-party framework. Their macros should not leak.
>
> The thing that bothers me is why macros should be substituting into method parameter names at all. It potentially brings *pieces* of method names into the global symbol namespace -- which is basically what happened to Paul, if you look at his problem from the other end. That possibility seems nightmarish to me.
>

It's just as useful or harmful as any other macro expansion; we've got auto-generated methods we build from macros for the same reason @synthesize is so useful - there's lots of boilerplate to copy if we had to do it by hand.
_______________________________________________

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

References: 
 >Warning message using stringWithContentsOfFile:encoding:error: (From: Paul Johnson <email@hidden>)
 >Re: Warning message using stringWithContentsOfFile:encoding:error: (From: Nick Zitzmann <email@hidden>)
 >Re: Warning message using stringWithContentsOfFile:encoding:error: (From: Paul Johnson <email@hidden>)
 >Re: Warning message using stringWithContentsOfFile:encoding:error: (From: "Gary L. Wade" <email@hidden>)
 >Re: Warning message using stringWithContentsOfFile:encoding:error: (From: Paul Johnson <email@hidden>)
 >Re: Warning message using stringWithContentsOfFile:encoding:error: (From: Kyle Sluder <email@hidden>)
 >Re: Warning message using stringWithContentsOfFile:encoding:error: (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: ARC conversion help - CFErrorRef* and NSError**
  • Next by Date: Re: ARC conversion help - CFErrorRef* and NSError**
  • Previous by thread: Re: Warning message using stringWithContentsOfFile:encoding:error:
  • Next by thread: Re: Warning message using stringWithContentsOfFile:encoding:error:
  • Index(es):
    • Date
    • Thread