• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
merging NSWindow and NSView controllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

merging NSWindow and NSView controllers


  • Subject: merging NSWindow and NSView controllers
  • From: Shane <email@hidden>
  • Date: Sat, 19 Jun 2010 18:58:09 -0500

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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: merging NSWindow and NSView controllers
      • From: Chris Hanson <email@hidden>
  • Prev by Date: raising NSException between Controllers
  • Next by Date: Re: merging NSWindow and NSView controllers
  • Previous by thread: Re: raising NSException between Controllers
  • Next by thread: Re: merging NSWindow and NSView controllers
  • Index(es):
    • Date
    • Thread