FROM : Jiri Volejnik
DATE : Thu Apr 07 22:31:15 2005
> Oh by the way.. Once you have set the superclass of your controller
> class and done all the connections
> how do you go about changing the superclass type?
I suppose you are talking about class hierarchy in Interface Builder.
If so, do this:
Locate your .nib in Finder and display it's contents (it's a package,
you'll need a context menu to open it). Open file "classes.nib" in
TextEdit and find the definition of your subclass. It begins with the
text "CLASS = XXYourSubclass". Then, look for the text "SUPERCLASS =
XXYourSuperclass" and replace XXYourSuperclass with
XXYourNewSuperclass. That's it.
Jiri Volejnik
DATE : Thu Apr 07 22:31:15 2005
> Oh by the way.. Once you have set the superclass of your controller
> class and done all the connections
> how do you go about changing the superclass type?
I suppose you are talking about class hierarchy in Interface Builder.
If so, do this:
Locate your .nib in Finder and display it's contents (it's a package,
you'll need a context menu to open it). Open file "classes.nib" in
TextEdit and find the definition of your subclass. It begins with the
text "CLASS = XXYourSubclass". Then, look for the text "SUPERCLASS =
XXYourSuperclass" and replace XXYourSuperclass with
XXYourNewSuperclass. That's it.
Jiri Volejnik
| Related mails | Author | Date |
|---|---|---|
| Brian O'Brien | Apr 7, 19:34 | |
| Ondra Cada | Apr 7, 19:40 | |
| Shawn Erickson | Apr 7, 19:52 | |
| Jiri Volejnik | Apr 7, 22:31 |






Cocoa mail archive

