• 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: Implementation across several files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementation across several files


  • Subject: Re: Implementation across several files
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 19 Apr 2006 23:09:04 +0200

Scott,

On 19.4.2006, at 22:52, Scott Ellsworth wrote:

I use the same techniques to move helper methods into a category declared and implemented in the .m, which keeps them out of the public interface. I do wish there were a similarly clean way to declare some instance variables that cannot easily be seen from outside, but I understand why there are not.

Depending on the task there might be.

You can use your own hidden subclass, returned instead of the API stuff, cluster-like. Very convenient, unless your class is to be subclassed itself.

Also, the extra instance variables can be stored in a dictionary: the overhead tends to be negligible (not always, of course, but suprisingly often).

(Matter of fact, I would advocate to change the runtime to base *all* instances on a dictionary /more precisely, a special hashtable/, which would vastly improve the flexibility, allow for much better interface/implementation separation, and also remove the one fragility ObjC has, but that is definitely beside the point at this moment :))
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ 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: Implementation across several files
      • From: Jonathon Mah <email@hidden>
References: 
 >untar into app bundle (From: petter <email@hidden>)
 >Re: untar into app bundle (From: Ondra Cada <email@hidden>)
 >Implementation across several files (From: Phil Montoya <email@hidden>)
 >Re: Implementation across several files (From: Scott Ellsworth <email@hidden>)

  • Prev by Date: Re: object Allocation
  • Next by Date: Re: Keys of the kingdom
  • Previous by thread: Re: Implementation across several files
  • Next by thread: Re: Implementation across several files
  • Index(es):
    • Date
    • Thread