> There is no such thing as a "private" method in Objective-C. The @private, > @protected, @public keywords only work on instance variables. So if the > super class implements -close, there should never be anything stopping your > subclass from simply calling [super close].
In this case, [super close] and [self close] are the same thing. Because you never overrode the -close method in your subclass, it doesn't matter, but if you ever do decide to override -close in your subclass, all the parts where you call [super close] will be broken. I'm going to make a bold statement: You should only ever call [super someMethod] from within an overridden someMethod implementation. I believe this is true in all cases (because I can't at the moment imagine a case where you'd do otherwise). Third party opinions are welcome. -- I.S. _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
