• 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: Why so many public properties all up in my grizzle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why so many public properties all up in my grizzle?


  • Subject: Re: Why so many public properties all up in my grizzle?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 16 Mar 2012 15:53:30 -0700

On Mar 16, 2012, at 2:57 PM, Eeyore wrote:

> So simply hiding the actions in the implementation doesn't protect you from finding out the method's name and calling it.

Well, sure. If you’re in the same process, there’s nothing protecting you from malicious code. The same goes for C++ or assembly; it’s just a little easier to find the method’s entry point in Obj-C because there’s more metadata.

The point of not declaring internal methods in the header isn’t for security, it’s to prevent accidentally using internal APIs in places where you shouldn’t. If a class considers property X as part of its internal state, then other code in the project shouldn’t use X, so you want to make sure that accidentally referring to X produces a compile error.

—Jens

_______________________________________________

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


  • Follow-Ups:
    • Re: Why so many public properties all up in my grizzle?
      • From: Luther Baker <email@hidden>
References: 
 >Re: Why so many public properties all up in my grizzle? (From: Eeyore <email@hidden>)

  • Prev by Date: Re: Why so many public properties all up in my grizzle?
  • Next by Date: Re: How to become root
  • Previous by thread: Re: Why so many public properties all up in my grizzle?
  • Next by thread: Re: Why so many public properties all up in my grizzle?
  • Index(es):
    • Date
    • Thread