• 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: Using performSelector: on super
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using performSelector: on super


  • Subject: Re: Using performSelector: on super
  • From: "email@hidden" <email@hidden>
  • Date: Tue, 5 Aug 2008 22:19:51 +0100

Sorry for the inaccuracy.

I am well aware that there is no such thing as a true private method in Objective-C, though it seems generally common to refer to such contraptions (A, B and Y's "Cocoa Programming" contains such usage, page 81).

I of course mean that the SuperSocket class responds to the -close method but does not declare it in its interface file.
-close is indeed declared as a method on a SuperSocket category defined within SuperSocket.m


I was using performSelector: merely to keep the compiler content.
Declaring a further accessible category on SuperSocket to announce the existence of -close accomplished the same thing.


At least my initial lassitude in declaring that category ultimately decreased the sum total of my ignorance.
No more super self confusion for me!



On 5 Aug 2008, at 21:39, I. Savant wrote:

On Tue, Aug 5, 2008 at 4:31 PM, James Bucanek <email@hidden> wrote:

The OP did override -close in their subclass and were attempting to call
[super close] from the subclass' -close method. The OP stated that they
couldn't simply use [super close] because -close was "private," which didn't
make any sense to me.

Yes, I was ignoring that part because I assumed it was just poorly phrased (and later corrected). Perhaps, Jonathan, you could elaborate on what leads you to believe the -close method is private?

--
I.S.

_______________________________________________

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: Using performSelector: on super
      • From: James Bucanek <email@hidden>
References: 
 >Re: Using performSelector: on super (From: "I. Savant" <email@hidden>)
 >Re: Using performSelector: on super (From: James Bucanek <email@hidden>)
 >Re: Using performSelector: on super (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Loading a class with a specific superclass from a bundle
  • Next by Date: CGGStackRestore: gstack underflow
  • Previous by thread: Re: Using performSelector: on super
  • Next by thread: Re: Using performSelector: on super
  • Index(es):
    • Date
    • Thread