• 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
NSSavePanel default name and prepareSavePanel:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSSavePanel default name and prepareSavePanel:


  • Subject: NSSavePanel default name and prepareSavePanel:
  • From: Tomas Franzén <email@hidden>
  • Date: Mon, 11 Sep 2006 18:45:25 +0200

Hi,

I'm trying to change the default name for my document as displayed in save panels. I noticed that there's no official way to do this with an existing save panel instance (in prepareSavePanel:). I found this message [1], which suggests setting the string value of the private text field _nameField. That doesn't seem to work anymore. It does work if I do the same with some delay (performSelector:withObject:afterDelay:), but it looks dorky, and it's such a horrible hack that I'm reluctant to use it.

Does anyone know of a better way to accomplish this?
Thanks!

Tomas Franzén
Lighthead Software
http://www.lightheadsw.com/

[1] http://www.cocoabuilder.com/archive/message/cocoa/2005/12/13/152466
_______________________________________________
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


  • Prev by Date: Re: Re: clicking through
  • Next by Date: Re: clicking through
  • Previous by thread: Re: Unit testing core data
  • Next by thread: NSTextView/NSLayoutManager bug?
  • Index(es):
    • Date
    • Thread