Skip navigation.
 
mlRe: "Subclassing" NIB files
FROM : j o a r
DATE : Wed Nov 27 21:23:13 2002

You cannot subclass nib files per se, but since you can do in code
everything that you can do in IB you can create non-nib all-code based
view components for the parts of your UI that you need to be able to
change and extend for different projects. In IB you create placeholders
for these components using the "CustomView" container object and set it
to the custom view class that you have defined in code. These custom
views then automagically get's replaced with your project specific
views at runtime.

j o a r

On Wednesday, Nov 27, 2002, at 20:19 Europe/Stockholm, John Nairn wrote:

> Now I want to extend the nib file to add a custom drawer and connect
> its interface elements to the existing ones. I know I can copy the nib
> file and work with a new one in the new application, but it would
> preferable to keep the general nib file and just get new features in
> by some method. The need is analogous to subclassing an object. This
> approach is much more elegant because then as I enhance plotting code
> it will appear in all applications that use it without having to go
> through them all and add any changes to copies of the nib files too.
>
> Is it possible?

_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
ml"Subclassing" NIB files John Nairn Nov 27, 20:19
mlRe: "Subclassing" NIB files j o a r Nov 27, 21:23