Re: [newbie] Handling a preferences window
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.