• 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
Re: Simple NSWindowController (or window in secondary nib)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple NSWindowController (or window in secondary nib)


  • Subject: Re: Simple NSWindowController (or window in secondary nib)
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 6 Feb 2010 21:29:04 -0800

2010/2/6 Trygve Inda <email@hidden>:
> Any thoughts on a design pattern for this situation?

I'd make your table view controller a subclass of NSViewController,
and instead of using a modal window I'd use a sheet, which your table
view controller would be the delegate of. All your logic gets to stay
in one place, and you don't put up modal UI where it's not necessary
(unless, of course, you actually *do* want to make an app-modal
window).

--Kyle Sluder
_______________________________________________

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: Simple NSWindowController (or window in secondary nib)
      • From: Trygve Inda <email@hidden>
References: 
 >Simple NSWindowController (or window in secondary nib) (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Simple NSWindowController (or window in secondary nib)
  • Next by Date: Re: Simple NSWindowController (or window in secondary nib)
  • Previous by thread: Re: Simple NSWindowController (or window in secondary nib)
  • Next by thread: Re: Simple NSWindowController (or window in secondary nib)
  • Index(es):
    • Date
    • Thread