AnotherJake
2004.11.12, 12:26 PM
I'm still working on my level editor. I have an inspector window which looks very similar to the inspector in IB. Right now I have it only inspecting sprites and they all have similar info so that works great. Now I want to add my terrain to the inspector but it's quite a different beast so all the info for the sprite inspector is useless. How would I go about changing the window being displayed for the inspector like InterfaceBuilder does?
I looked into the InterfaceBuilder nibs themselves and they make a separate window nib for every different type of inspector. The only thing that doesn't get included in those nibs is the selection pop-up at the top. I wasn't able to find the nib that contained that pop-up, so I suspect it may be created programmatically and the custom info inspector somehow attached below it. I suppose it could also be the other way around with the pop-up programatically added on top. Maybe they're just replacing the info window every time? I somehow doubt that. I tried a mamsam search and an apple search and a google, but no luck so far. Any ideas?
I looked into the InterfaceBuilder nibs themselves and they make a separate window nib for every different type of inspector. The only thing that doesn't get included in those nibs is the selection pop-up at the top. I wasn't able to find the nib that contained that pop-up, so I suspect it may be created programmatically and the custom info inspector somehow attached below it. I suppose it could also be the other way around with the pop-up programatically added on top. Maybe they're just replacing the info window every time? I somehow doubt that. I tried a mamsam search and an apple search and a google, but no luck so far. Any ideas?