• 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: [newbie] Handling a preferences window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [newbie] Handling a preferences window


  • Subject: Re: [newbie] Handling a preferences window
  • From: Yann Bizeul <email@hidden>
  • Date: Mon, 30 Sep 2002 00:40:44 +0200

Each to their own, but it's not generally good practice to handle things like prefs in the main nib. Items which aren't central tend to be put in separate nibs. It doesn't matter much if your application is very small, but if it grows complex, you gain efficiency by farming things out.
Ok I take note !

Now I don't know what to write in my showPreferences code, how to access this NSWindow object to ask him to display ?
Assuming TSMPrefs is a subclass of NSWindowController (which it should be), just connect "Preferences..." to the object's built-in -showWindow: action method.
Hum, TSMPrefs is not a subclass of NSWindowController ;-) I finally decided to not create a subclass in IB just to handle open and close. So you think I should ?

Thanks

--
Yann Bizeul
16, rue Pache
75011 Paris

Til. 01 43 72 28 66 - Mob. 06 60 43 00 88
http://www.tynsoe.org/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [newbie] Handling a preferences window
      • From: James DiPalma <email@hidden>
References: 
 >Re: [newbie] Handling a preferences window (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: Re: [NEWBIE QUESTION] What message is sent when window contents finish loading? (revisited)
  • Next by Date: NSBezierPath Problems
  • Previous by thread: Re: [newbie] Handling a preferences window
  • Next by thread: Re: [newbie] Handling a preferences window
  • Index(es):
    • Date
    • Thread