• 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
Hiding superclass methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hiding superclass methods


  • Subject: Hiding superclass methods
  • From: Brock Brandenberg <email@hidden>
  • Date: Thu, 9 May 2002 16:36:38 -0500

Is there a way in Obj-C to hide a superclass method so that compiler checking would catch/flag any access to that method? I have an NSView subclass that is instantiated in code at runtime that has a custom initWithFrame:data: method that, in turn, calls the initWithFrame: method. I'd like to prevent my accidental use of the standard initWithFrame method, if possible, but haven't found any relevant information in the Obj-C book.

It is acceptable practice to do this, or should I explicitly call an additional initializer after my [[obj alloc] initWithFrame:] calls?

Thanks,
Brock Brandenberg

----- industrial design @ bergdesign.com ------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Hiding superclass methods
      • From: Ondra Cada <email@hidden>
    • Re: Hiding superclass methods
      • From: Andy Lee <email@hidden>
    • Re: Hiding superclass methods
      • From: Thomas Lachand-Robert <email@hidden>
    • Re: Hiding superclass methods
      • From: email@hidden
  • Prev by Date: Manipulating Scrollers question
  • Next by Date: Re: Hiding superclass methods
  • Previous by thread: Re: Manipulating Scrollers question
  • Next by thread: Re: Hiding superclass methods
  • Index(es):
    • Date
    • Thread