• 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: How to properly add a document with -addDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to properly add a document with -addDocument


  • Subject: Re: How to properly add a document with -addDocument
  • From: Steven LeMaire <email@hidden>
  • Date: Mon, 10 Jul 2006 21:35:48 -0400

Hi, I just happened to be browsing and noticed this:

http://www.stepwise.com/Articles/2006/eb1/index.html

I haven't read it completely yet, but it might offer some insight.
Hope it helps.

Cheers,
Steven

On 9-Jul-06, at 11:29 PM, PGM wrote:

Hey,

I have no experience with the nib-stuff, but in order to actually show the window, I think you would have to call [document makeWindowControllers].

Best, Patrick


On Jul 9, 2006, at 18:39, Hannes Petri wrote:

Hello,
In my application, a template-chooser is shown when creating a new document (kind of like the one in Pages).
I want to create my document with an initializer, with the argument from the template chooser. I use the following code:


(faked class names and arguments)

Template* template = [[Template alloc] initWithBundleID:@"com.hello.templates.blah"];
Document* document = [[Document alloc] initWithTemplate:template];
[[NSDocumentController sharedDocumentController] addDocument:document];


I thought that this would bring up a nice document, but nothing happens. What is wrong? Is it possible to create documents this way at all?


Hannes Petri
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40sympatico.ca


This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40sympatico.ca


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How to properly add a document with -addDocument
      • From: Hannes Petri <email@hidden>
References: 
 >How to properly add a document with -addDocument (From: Hannes Petri <email@hidden>)
 >Re: How to properly add a document with -addDocument (From: PGM <email@hidden>)

  • Prev by Date: Question about dealloc and NSBitmapImageRep
  • Next by Date: Re: Determining modifier key state and *end* of menu selection
  • Previous by thread: Re: How to properly add a document with -addDocument
  • Next by thread: Re: How to properly add a document with -addDocument
  • Index(es):
    • Date
    • Thread