• 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: Cocoa newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa newbie question


  • Subject: Re: Cocoa newbie question
  • From: Greg Casey <email@hidden>
  • Date: Thu, 22 May 2003 15:00:32 -0400

Begin forwarded message:

From: Greg Casey <email@hidden>
Date: Thu May 22, 2003 2:54:22 PM US/Eastern
To: Cocoa-Dev List <email@hidden>
Subject: Re: Cocoa newbie question

I created my own NSDocumentController subclass and overloaded the "newDocument:" and "makeUntitledDocumentOfType:" methods. If you choose to go this route, you'll need to create an instance of your NSDocumentController in the MainMenu.nib (or whatever you call your main nib file) so that it gets loaded before the default NSDocumentController.

HTH,

-gtc

On Thursday, May 22, 2003, at 01:47 PM, Totte Alm wrote:

Hello all mighty masters of cocoa,

I'm pretty new to Cocoa/Objective-C, coming from the Carbon/pre Carbon world (and SunOS/Solaris). I've done some test stuff, but I have a question that is probably pretty easy answered by the gurus that inhabit this list.

Question:
What is the approach to use the NSDocument way for documents combined with "Assistant", much like the one in ProjectBuilder when you make a new Project?

It seems like that kind of solution twists the NSDocument way of thinking rather awful. Should I stay away from the NSDocument way and handle it myself, or is it a simple way to create a new document from inside a ActionMenthod of the Controller for the Assistant Window?

OK, hope you understand. I know how I would have done in Carbon, but I want to write this app in Cocoa/Objc. I will bug you later on loading Cocoa plugin bundles, be sure of that.

Feels good to have taken this step into the world of Cocoa and Objc. The final "push" was an article in MacTech (about Transmit). I've felt exactly as he did about the ObjC syntax, and when he said "Do be scared", I encouraged myself.

// Totte
3TAG AB ( and Code 66)

---------------------------------------------------------------------- -----------------------------
There are 10 types of people in this world, those who can read binary and those who can't.
_______________________________________________
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.




-gtc




-gtc
_______________________________________________
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: Cocoa newbie question
      • From: Totte Alm <email@hidden>
  • Prev by Date: Control characters in an NSAttributed string?
  • Next by Date: Re: Control characters in an NSAttributed string?
  • Previous by thread: Cocoa newbie question
  • Next by thread: Re: Cocoa newbie question
  • Index(es):
    • Date
    • Thread