• 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
[SOLUTION] Trouble with a Save Panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLUTION] Trouble with a Save Panel


  • Subject: [SOLUTION] Trouble with a Save Panel
  • From: David Wood <email@hidden>
  • Date: Mon, 26 May 2003 22:35:47 -0400

I'd gotten a few requests for the solution to this problem, as there are numerous people who have similar problems. My problem may have been a little too specific, but because I keep getting asked about it, it seems worthwhile to post the answer.

The code, it turns out, WAS correct. The problem was in my NIB.

Beside having BigLetterView as a view in the program's document window, I made the mistake of *instantiating* it as well. So when I did various things with it, it had a window to play in -- that was the one drawn in the window itself. Because the window was receiving all the basic events, the correct BigLetterView object was getting all the attention.

The Save PDF menu item was linked to the instantiated version .....which did NOT have a window. So when I tried to use that command, the message went to the wrong BigLetterView. beginSheetForDirectory:etc: got "no window" to draw in so it opened its own window. It also monkeyed with the drawing of the sheets, making them look broken.

Even more disturbingly, I duplicated the source code -- AND the same mistake! -- in an attempt to track down the problem. It finally took downloading the code itself from BigNerdRanch and comparing the nibs to see what I did.

Thanks for watching the thread and offering suggestions, gentlemen. Hopefully, it'll be a while before I need more help like that.

--David http://skipjack.bluecrab.org/~dwood

"Yo quiero el bazo de ese molesto perro!"
("I want the spleen of that annoying dog!")
_______________________________________________
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.

  • Prev by Date: Re: Why multi-threading ?
  • Next by Date: Re: Why multi-threading ?
  • Previous by thread: Re: Why multi-threading ?
  • Next by thread: multiple private framework ....
  • Index(es):
    • Date
    • Thread