Hiding superclass methods
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.