I have an applications with two controllers, one inherits
NSWindowController and uses initWithWindowNibName:, and the other
inherits NSViewController and uses initWithNibName:

Yet, other than the init function which uses different *.nib files in
each, the rest of the code in the controller is exactly the same since
it draws the same stuff in each NSView of each NIB file (both of which
are custom views). In one NIB file the NSView is inside an NSWindow,
and in the other NIB it's just an NSView. But each view has the same
graphics contents, so it's pretty much duplicated. If I make changes
to one, I pretty much have to do it to the other as well.

Anyone have ideas on how to merge these?
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to