• 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: different launch methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: different launch methods


  • Subject: Re: different launch methods
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Tue, 7 Oct 2003 10:58:30 +0100

On Tuesday, October 7, 2003, at 08:20 am, Damien Pacaud wrote:

Well I need this because, when I open he file through the menu, it should diplay and when i drag and drop it on the icon, it should open a wizzard of sme kind...;

You could probably subclass NSDocumentController and override the -openDocument:, -openDocumentWithContentsOfFile:display: and -openDocumentWithContentsOfURL:display: methods so that the latter two run your wizard and the former calls the superclass implementation of -openDocumentWithContentsOfFile:display:.

In order to make your app. use your custom document controller subclass, you need to instantiate it in your MainMenu.nib. (Basically, NSDocumentController is a singleton, so whichever version is instantiated first will be the one that gets used.)

Those are the specs for the app, and there is not much i can do about it...

Sounds to me like you need to talk to whoever writes your requirement/specification about the possibility of having more input (even during development). Design *should* be influenced by things that you discover during implementation; otherwise it's too easy to churn-out poor code, break the user interface guidelines or commit other heinous crimes in the name of sticking to the agreed design/specification. Remember... it's the end product that matters, not *how* you got to it; your "quality" process (ISO9K or otherwise) may require you to record the "how", but it's very easy to become obsessive about process and lose sight of what you are trying to achieve.

Kind regards,

Alastair.
_______________________________________________
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:
    • disabling some attributes of a window programaticaly
      • From: Damien Pacaud <email@hidden>
References: 
 >Re: different launch methods (From: Damien Pacaud <email@hidden>)

  • Prev by Date: Re: [OT] serial number validation algorithm?
  • Next by Date: Re: [OT] serial number validation algorithm?
  • Previous by thread: Re: different launch methods
  • Next by thread: disabling some attributes of a window programaticaly
  • Index(es):
    • Date
    • Thread