• 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: Multiple Windows for an App question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Windows for an App question


  • Subject: Re: Multiple Windows for an App question
  • From: James Housley <email@hidden>
  • Date: Mon, 24 Jan 2005 08:14:42 -0500

James Housley wrote:
I tried creating a second window for an my app and it it never became viewable. I tried basing my work on SimpleMultiWindow and something didn't work right, I will deal with that later, unless I find a step by step on how to. So I just imported the .nib file for the second window into my app and am going from there. If I use a NSTextField, I can put data in it and such. I need a NSTextView, it shows up and I can initialize it just fine. I how ever can not put any data into it. Is this because I in SimpleMultiWindow it is sub-classed on NSWindowController instead of NSDocument?


To reply to myself, I couldn't get NSTextView to work in the SimpleMultiWindow either. But by changing the init method from initWithWindowNibName: in the main app to init: and adding in the second window init [NSBundle loadNibNamed: owner:] things now seem to work.


Jim

--
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
 X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
email@hidden      http://www.FreeBSD.org     The Power to Serve
email@hidden  http://www.TheHousleys.net
---------------------------------------------------------------------
"It's a damn poor mind that can only think of one way to
spell a word."
    -- Andrew Jackson

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

 _______________________________________________
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

References: 
 >Multiple Windows for an App question (From: James Housley <email@hidden>)

  • Prev by Date: Should I override close to free my document's data?
  • Next by Date: Re: NSOutlineView: expanding an item retains it?
  • Previous by thread: Multiple Windows for an App question
  • Next by thread: Managing multiple nibs
  • Index(es):
    • Date
    • Thread